code: def create(cls, py_callback_pickler):
      if py_callback_pickler is None or isinstance(
          py_callback_pickler, cls
      ):
          return py_callback_pickler
      if hasattr(py_callback_pickler, "dumps") and hasattr(
          py_callback_pickler, "loads"
      ):
          return cls.create_from_reducer(py_callback_pickler)
      if isinstance(py_callback_pickler, (tuple, list)):
          params = [None] * 3
          for i, item in enumerate(py_callback_pickler):
              params[i] = item
          reducer, kwargs_dumps, kwargs_loads = params
          return cls.create_from_reducer(
              reducer, kwargs_dumps, kwargs_loads
          )
      raise ValueError(
          "Unsupported py_callback_pickler value provided."
      )
  
file_path: DALI/dali/python/nvidia/dali/pickling.py
imports: import inspect
  import pickle
  import io
  from nvidia.dali import reducers
label_desc: Use image node_id 1 for calling the _CustomPickler obj's underlying member method code with example usage: obj.create(cls, py_callback_pickler) and returns: py_callback_pickler, cls, cls