code: def partialclass(cls, *args, **kwargs):
      class NewCls(cls):
          __init__ = functools.partialmethod(
              cls.__init__, *args, **kwargs
          )
  
      return NewCls
  
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 7 for calling a global function with example usage: partialclass(cls) and returns: NewCls