When in Rome, Do as the Romans Do

What does the idiom “When in Rome, Do as the Romans Do” mean?

Definition:

When you visit a new place, follow the customs of the people there

For example:

“When I visit Indonesia, it seems strange to have to call the waitstaff instead of having them come and offer to help you. But when in Rome, do as the Romans do.”