code: def _to_cloudpickle(self, obj):
      return {
          "_type": "CLOUDPICKLE_FALLBACK",
          "value": binary_to_hex(cloudpickle.dumps(obj)),
      }
  
file_path: ray/python/ray/tune/utils/serialization.py
imports: import json
  import logging
  import types
  from ray import cloudpickle
  from ray._private.utils import binary_to_hex, hex_to_binary
  from ray.util.annotations import DeveloperAPI
  from ray.util.debug import log_once
label_desc: Use image node_id 2 for calling the TuneFunctionEncoder obj's underlying member method code with example usage: obj._to_cloudpickle(obj) and returns: dict