code: def dumps_debug(obj, *args, **kwargs):
      try:
          return dumps(obj, *args, **kwargs)
      except (TypeError, PicklingError) as exc:
          if os.environ.get("RAY_PICKLE_VERBOSE_DEBUG"):
              from ray.util.check_serialize import (
                  inspect_serializability,
              )
  
              inspect_serializability(obj)
              raise
          else:
              msg = _warn_msg(obj, "ray.cloudpickle.dumps", exc)
              raise type(exc)(msg)
  
file_path: ray/python/ray/cloudpickle/__init__.py
imports: from __future__ import absolute_import
  import os
  from pickle import PicklingError
  from ray.cloudpickle.cloudpickle import *
  from ray.cloudpickle.cloudpickle_fast import CloudPickler, dumps, dump
label_desc: Use image node_id 3 for calling a global function with example usage: dumps_debug(obj) and returns: dumps