code: def _in_memory_dataset(source, schema=None, **kwargs):
      if any(v is not None for v in kwargs.values()):
          raise ValueError(
              "For in-memory datasets, you cannot pass any additional arguments"
          )
      return InMemoryDataset(source, schema)
  
file_path: arrow/python/pyarrow/dataset.py
imports: import pyarrow
  from pyarrow.util import _is_iterable, _stringify_path, _is_path_like
  from pyarrow.compute import Expression, scalar, field
label_desc: Use image node_id 8 for calling a global function with example usage: _in_memory_dataset(source, schema) and returns: InMemoryDataset