code: def _map_with_joblib(
      function,
      iterable,
      num_proc,
      types,
      disable_tqdm,
      desc,
      single_map_nested_func,
  ):
      # progress bar is not yet supported for _map_with_joblib, because tqdm couldn't accurately be applied to joblib,
      # and it requires monkey-patching joblib internal classes which is subject to change
      import joblib
  
      with joblib.parallel_backend(
          ParallelBackendConfig.backend_name, n_jobs=num_proc
      ):
          return joblib.Parallel()(
              joblib.delayed(single_map_nested_func)(
                  (function, obj, types, None, True, None)
              )
              for obj in iterable
          )
  
file_path: datasets/src/datasets/parallel/parallel.py
imports: import contextlib
  from multiprocessing import Pool, RLock
  from tqdm.auto import tqdm
  from ..utils import experimental, logging
label_desc: Use image node_id 3 for calling a global function with example usage: _map_with_joblib(function, iterable, num_proc, types, disable_tqdm, desc, single_map_nested_func) and returns: joblib