code: def parallel_map(func, iterable, **kwargs):
      def wrapper(arg_with_idx):
          idx, arg = arg_with_idx
          return idx, func(arg)
  
      res = parallel_imap_unordered(
          wrapper, enumerate(iterable), **kwargs
      )
      return [r for idx, r in sorted(res)]
  
file_path: metaflow/metaflow/multicore_utils.py
imports: import sys
  import os
  import traceback
  from itertools import islice
  from tempfile import NamedTemporaryFile
  import time
  import metaflow.tracing
label_desc: Use image node_id 3 for calling a global function with example usage: parallel_map(func, iterable) and returns: unknown, idx,  func