code: def partialclass(cls, *args, **kwds):
      class NewCls(cls):
          __init__ = functools.partialmethod(
              cls.__init__, *args, **kwds
          )
  
      return NewCls
  
imports: import functools
  import torch
  import torch.nn
  from .None import pytorch_prototyping
label_desc: Use image node_id 1 for calling a global function with example usage: partialclass(cls) and returns: NewCls