code: def remove_dimensions(self, dimension_names):
          
          with self._lock:
              for dimension in dimension_names:
                  if dimension in self._extra_dimensions:
                      del self._extra_dimensions[dimension]
docs: 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.