def remove_dimensions(self, dimension_names):
with self._lock:<EOL><INDENT>for dimension in dimension_names:<EOL><INDENT>if dimension in self._extra_dimensions:<EOL><INDENT>del self._extra_dimensions[dimension]<EOL><DEDENT><DEDENT><DEDENT>
Removes extra dimensions added by the add_dimensions() function.
        Ignores dimension names that don't exist.

        Args:
            dimension_names (list): List of dimension names to remove.