code: def is_geodataframe(data):
      if "spatialpandas" in sys.modules:
          import spatialpandas as spd
  
          if isinstance(data, spd.GeoDataFrame):
              return True
      return (
          isinstance(data, pd.DataFrame)
          and hasattr(data, "geom_type")
          and hasattr(data, "geometry")
      )
  
imports: import sys
  from collections.abc import Hashable
  from functools import wraps
  from packaging.version import Version
  from types import FunctionType
  import bokeh
  import numpy
  import pandas
  import param
  import holoviews
label_desc: Use image node_id 20 for calling a global function with example usage: is_geodataframe(data) and returns: unknown, True