code: def load_partial_from_config(config):
      return partial(
          get_obj_from_str(config["target"]),
          **config.get("params", dict()),
      )
  
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 5 for calling a global function with example usage: load_partial_from_config(config) and returns: partial