code: def _wrap_non_picklable_objects(obj, keep_wrapper):
      if callable(obj):
          return CallableObjectWrapper(obj, keep_wrapper=keep_wrapper)
      return CloudpickledObjectWrapper(obj, keep_wrapper=keep_wrapper)
  
file_path: catboost/contrib/python/joblib/joblib/externals/loky/cloudpickle_wrapper.py
imports: import inspect
  from functools import partial
  from joblib.externals.cloudpickle import dumps, loads
label_desc: Use image node_id 1 for calling a global function with example usage: _wrap_non_picklable_objects(obj, keep_wrapper) and returns: CloudpickledObjectWrapper, CallableObjectWrapper