code: def inline_data_transformer(data):
      if has_geo_interface(data):
          # Use default transformer for geo interface objects
          # # (e.g. a geopandas GeoDataFrame)
          return alt.default_data_transformer(data)
      elif is_dataframe_like(data):
          table_name = f"table_{uuid.uuid4()}".replace("-", "_")
          __inline_tables[table_name] = data
          return {"url": DATASET_PREFIXES[0] + table_name}
      else:
          # Use default transformer if we don't recognize data
          return alt.default_data_transformer(data)
  
imports: import io
  import os
  import pathlib
  from hashlib import sha1
  from tempfile import NamedTemporaryFile
  import uuid
  import altair
  import pandas
  import pyarrow
  from weakref import WeakValueDictionary
label_desc: Use image node_id 9 for calling a global function with example usage: inline_data_transformer(data) and returns: alt, dict, alt