code: def from_geopandas(gpdf):
      """
      Converts a geopandas mixed geometry dataframe into a cuspatial geometry
      dataframe.
  
      Possible inputs:
  
      - :class:`geopandas.GeoSeries`
      - :class:`geopandas.GeoDataFrame`
      """
      if isinstance(gpdf, gpGeoSeries):
          return GeoSeries(gpdf)
      elif isinstance(gpdf, gpGeoDataFrame):
          return GeoDataFrame(gpdf)
      elif isinstance(gpdf, pd.Series):
          raise TypeError(
              "Mixed pandas/geometry types not supported yet."
          )
      else:
          raise TypeError
  
imports: import pandas
  from geopandas import GeoDataFrame
  from geopandas.geoseries import GeoSeries
  from cuspatial import GeoDataFrame, GeoSeries
label_desc: Use image node_id 1 for calling a global function with example usage: from_geopandas(gpdf) and returns: GeoSeries, GeoDataFrame