code: def run_parallel(cmds, **kwargs):
      """
      Run each of cmds (with shared **kwargs) using subprocess.Popen
      then wait for all of them to complete.
      Runs batches of multiprocessing.cpu_count() * 2 from cmds
      returns a list of tuples containing each process'
      returncode, stdout, stderr
      """
      complete = []
      for cmds_batch in chunk(cmds, mp.cpu_count() * 2):
          procs_batch = [Popen(cmd, **kwargs) for cmd in cmds_batch]
          for proc in procs_batch:
              stdout, stderr = proc.communicate()
              complete.append((proc.returncode, stdout, stderr))
      return complete
  
file_path: milvus/internal/core/build-support/lintutils.py
imports: import multiprocessing
  import os
  from fnmatch import fnmatch
  from subprocess import Popen
label_desc: Use image node_id 3 for calling a global function with example usage: run_parallel(cmds) and returns: complete