code: def _register_cloudpickle_serializer(
      self, cls, custom_serializer, custom_deserializer
  ):
      def _CloudPicklerReducer(obj):
          return custom_deserializer, (custom_serializer(obj),)
  
      # construct a reducer
      pickle.CloudPickler.dispatch[cls] = _CloudPicklerReducer
  
file_path: ray/python/ray/util/serialization.py
imports: import ray
  import ray.cloudpickle
  from ray.util.annotations import DeveloperAPI, PublicAPI
label_desc: Use image node_id 3 for calling the StandaloneSerializationContext obj's underlying member method code with example usage: obj._register_cloudpickle_serializer(cls, custom_serializer, custom_deserializer) and returns: custom_deserializer,  custom_serializer