code: def unpack_ray_callbacks(cbs):
      """Take an iterable of callbacks, return a list of each callback."""
      if cbs:
          # Only drop callback methods that aren't in CBS_DONT_DROP.
          return RayCallbacks(
              *(
                  [cb for cb in cbs_ if cb or CBS[idx] in CBS_DONT_DROP]
                  or None
                  for idx, cbs_ in enumerate(zip(*cbs))
              )
          )
      else:
          return RayCallbacks(*([()] * len(CBS)))
  
imports: import contextlib
  from collections import namedtuple, defaultdict
  from datetime import datetime
  from dask.callbacks import Callback
label_desc: Use image node_id 2 for calling a global function with example usage: unpack_ray_callbacks(cbs) and returns: RayCallbacks, RayCallbacks