code: def get_custom_dataset(dataset_config, tokenizer, split: str):
      if ":" in dataset_config.file:
          module_path, func_name = dataset_config.file.split(":")
      else:
          module_path, func_name = (
              dataset_config.file,
              "get_custom_dataset",
          )
  
      if not module_path.endswith(".py"):
          raise ValueError(
              f"Dataset file {module_path} is not a .py file."
          )
  
      module_path = Path(module_path)
      if not module_path.is_file():
          raise FileNotFoundError(
              f"Dataset py file {module_path.as_posix()} does not exist or is not a file."
          )
  
      module = load_module_from_py_file(module_path.as_posix())
      try:
          return getattr(module, func_name)(
              dataset_config, tokenizer, split
          )
      except AttributeError as e:
          print(
              f"It seems like the given method name ({func_name}) is not present in the dataset .py file ({module_path.as_posix()})."
          )
          raise e
  
file_path: llama-recipes/src/llama_recipes/utils/dataset_utils.py
imports: import importlib
  from functools import partial
  from pathlib import Path
  import torch
  from llama_recipes.datasets import get_grammar_dataset, get_alpaca_dataset, get_samsum_dataset
label_desc: Use image node_id 2 for calling a global function with example usage: get_custom_dataset(dataset_config, tokenizer, split) and returns: getattr