code: def load_module_from_py_file(py_file: str) -> object:
      """
      This method loads a module from a py file which is not in the Python path
      """
      module_name = Path(py_file).name
      loader = importlib.machinery.SourceFileLoader(
          module_name, py_file
      )
      spec = importlib.util.spec_from_loader(module_name, loader)
      module = importlib.util.module_from_spec(spec)
  
      loader.exec_module(module)
  
      return module
  
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 1 for calling a global function with example usage: load_module_from_py_file(py_file) and returns: module