code: def class_from_module_repr(cls_name, module_repr):
      path = osp.join(gettempdir(), f"{getuser()}_pyg")
      os.makedirs(path, exist_ok=True)
      with TempFile(
          mode="w+", suffix=".py", delete=False, dir=path
      ) as f:
          f.write(module_repr)
      spec = spec_from_file_location(cls_name, f.name)
      mod = module_from_spec(spec)
      sys.modules[cls_name] = mod
      spec.loader.exec_module(mod)
      return getattr(mod, cls_name)
  
file_path: pytorch_geometric/torch_geometric/nn/sequential.py
imports: import os
  import os.path
  import sys
  from getpass import getuser
  from importlib.util import module_from_spec, spec_from_file_location
  from tempfile import NamedTemporaryFile
  from tempfile import gettempdir
  from typing import Callable, List, NamedTuple, Tuple, Union
  from uuid import uuid1
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: class_from_module_repr(cls_name, module_repr) and returns: getattr