code: def _import_or_register_inline_datasets(self, inline_datasets=None):
      inline_datasets = inline_datasets or dict()
      imported_inline_datasets = dict()
      for name, value in inline_datasets.items():
          if isinstance(value, SqlDataset):
              imported_inline_datasets[name] = value
          elif isinstance(value, DataFrameDataset):
              imported_inline_datasets[name] = value
          elif isinstance(value, pa.Table):
              if self._connection is not None:
                  try:
                      # Try registering Arrow Table if supported
                      self._connection.register_arrow(
                          name, value, temporary=True
                      )
                      continue
                  except ValueError:
                      pass
  
              imported_inline_datasets[name] = DfiDatasource(value)
          elif isinstance(value, pd.DataFrame):
              if self._connection is not None:
                  try:
                      # Try registering DataFrame if supported
                      self._connection.register_pandas(
                          name, value, temporary=True
                      )
                      continue
                  except ValueError:
                      pass
  
              imported_inline_datasets[name] = PandasDatasource(value)
          elif hasattr(value, "__dataframe__"):
              imported_inline_datasets[name] = DfiDatasource(value)
          else:
              raise ValueError(
                  f"Unsupported DataFrame type: {type(value)}"
              )
  
      return imported_inline_datasets
  
imports: import pandas
  import psutil
  import pyarrow
  from typing import Union
  from .connection import SqlConnection
  from .dataset import SqlDataset, DataFrameDataset
  from .datasource import PandasDatasource, DfiDatasource
  from .evaluation import get_mark_group_for_scope
  from .transformer import import_pyarrow_interchange, to_arrow_table
  from .local_tz import get_local_tz
  from typing import TypedDict, List, Literal, Any
label_desc: Use image node_id 8 for calling the VegaFusionRuntime obj's underlying member method code with example usage: obj._import_or_register_inline_datasets(inline_datasets) and returns: imported_inline_datasets