code: def get_obj_from_str(string, reload=False, invalidate_cache=True):
      module, cls = string.rsplit(".", 1)
      if invalidate_cache:
          importlib.invalidate_caches()
      if reload:
          module_imp = importlib.import_module(module)
          importlib.reload(module_imp)
      return getattr(importlib.import_module(module, package=None), cls)
  
imports: import functools
  import importlib
  import os
  from functools import partial
  from inspect import isfunction
  import fsspec
  import numpy
  import torch
  from PIL import Image, ImageDraw, ImageFont
  from safetensors.torch import load_file
label_desc: Use image node_id 19 for calling a global function with example usage: get_obj_from_str(string, reload, invalidate_cache) and returns: getattr