code: def get_obj_from_str(string, reload=False):
      module, cls = string.rsplit(".", 1)
      if reload:
          module_imp = importlib.import_module(module)
          importlib.reload(module_imp)
      return getattr(importlib.import_module(module, package=None), cls)
  
file_path: colossalai/examples/images/diffusion/ldm/util.py
imports: import importlib
  from inspect import isfunction
  import numpy
  import torch
  from PIL import Image, ImageDraw, ImageFont
  from torch import optim
label_desc: Use image node_id 9 for calling a global function with example usage: get_obj_from_str(string, reload) and returns: getattr