code: def _warn_msg(obj, method, exc):
      return (
          f"{method}({str(obj)}) failed."
          "\nTo check which non-serializable variables are captured "
          "in scope, re-run the ray script with 'RAY_PICKLE_VERBOSE_DEBUG=1'."
      )
  
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 1 for calling a global function with example usage: _warn_msg(obj, method, exc) and returns: method, str, str, str