docs: def make_it_valid(shape):
      """
      Attempt to make any polygon or multipolygon valid.
      """
  
      if shape.is_empty:
          return shape
  
      elif shape.type == 'MultiPolygon':
          shape = make_valid_multipolygon(shape)
  
      elif shape.type == 'Polygon':
          shape = make_valid_polygon(shape)
  
      return shape