code: def get_inline_datasets_for_spec(vega_spec):
      table_names = get_inline_dataset_names(vega_spec)
      datasets = {}
      for table_name in table_names:
          try:
              datasets[table_name] = get_inline_dataset_table(
                  table_name
              )
          except KeyError:
              # named dataset that was provided by the user
              pass
      return datasets
  
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 8 for calling a global function with example usage: get_inline_datasets_for_spec(vega_spec) and returns: datasets