code: def get_inline_dataset_names(vega_spec):
      """
      Get set of the inline datasets names in the provided spec
  
      :param vega_spec: Vega spec
      :return: set of inline dataset names
      """
      table_names = set()
      for data in vega_spec.get("data", []):
          url = data.get("url", "")
          for prefix in DATASET_PREFIXES:
              if url.startswith(prefix):
                  name = url[len(prefix) :]
                  table_names.add(name)
  
      for mark in vega_spec.get("marks", []):
          table_names.update(get_inline_dataset_names(mark))
  
      return table_names
  
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 6 for calling a global function with example usage: get_inline_dataset_names(vega_spec) and returns: table_names