code: def register_safe_class(cls, input_class):
      assert isinstance(
          input_class, type
      ), "Cannot register %s type as safe" % type(input_class)
      classname = str(input_class).split("'")[1]
      logging.info(
          f"Registering {classname} class as safe for deserialization."
      )
      cls.__SAFE_CLASSES[classname] = input_class
  
imports: import builtins
  import collections
  import inspect
  import io
  import logging
  import pickle
  import torch
label_desc: Use image node_id 1 for calling the RestrictedUnpickler obj's underlying member method code with example usage: obj.register_safe_class(cls, input_class) without return types