code: def dehydrate_point(value):
      
      dim = len(value)
      if dim == 2:
          return Structure(b"X", value.srid, *value)
      elif dim == 3:
          return Structure(b"Y", value.srid, *value)
      else:
          raise ValueError("Cannot dehydrate Point with %d dimensions" % dim)
docs: Dehydrator for Point data.
  
      :param value:
      :type value: Point
      :return: