class_docstr: Pool using MPI processes as workers.
docstr: Initialize a new Pool instance.
  
  Args:
      processes: Number of worker processes.
      initializer: An callable used to initialize workers processes.
      initargs: A tuple of arguments to pass to the initializer.
  
  .. note::
  
     Additional keyword arguments are passed down to the
     `MPIPoolExecutor` constructor.
  
  .. warning::
  
     The *maxtasksperchild* and *context* arguments of
     `multiprocessing.pool.Pool` are not supported.  Specifying
     *maxtasksperchild* or *context* with a value other than `None` will
     issue a warning of category `UserWarning`.
docstr_tok: ["Initialize","a","new","Pool","instance",".","Args",":","processes",":","Number","of","worker","processes",".","initializer",":","An","callable","used","to","initialize","workers","processes",".","initargs",":","A","tuple","of","arguments","to","pass","to","the","initializer",".","..","note",":",":","Additional","keyword","arguments","are","passed","down","to","the","`","MPIPoolExecutor","`","constructor",".","..","warning",":",":","The","*","maxtasksperchild","*","and","*","context","*","arguments","of","`","multiprocessing.pool.Pool","`","are","not","supported",".","Specifying","*","maxtasksperchild","*","or","*","context","*","with","a","value","other","than","`","None","`","will","issue","a","warning","of","category","`","UserWarning","`","."]
code: def __init__(
      self,
      processes=None,
      initializer=None,
      initargs=(),
      **kwargs,
  ):
      """Initialize a new Pool instance.
  
      Args:
          processes: Number of worker processes.
          initializer: An callable used to initialize workers processes.
          initargs: A tuple of arguments to pass to the initializer.
  
      .. note::
  
         Additional keyword arguments are passed down to the
         `MPIPoolExecutor` constructor.
  
      .. warning::
  
         The *maxtasksperchild* and *context* arguments of
         `multiprocessing.pool.Pool` are not supported.  Specifying
         *maxtasksperchild* or *context* with a value other than `None` will
         issue a warning of category `UserWarning`.
  
      """
      if processes is not None:
          if processes < 1:
              raise ValueError("number of processes must be at least 1")
      if initializer is not None:
          if not callable(initializer):
              raise TypeError("initializer must be a callable")
      for name in ("maxtasksperchild", "context"):
          if kwargs.pop(name, None) is not None:
              message = f"argument {name!r} is not supported"
              _warnings.warn(message, stacklevel=2)
  
      self.executor = self.Executor(
          processes,
          initializer=initializer,
          initargs=initargs,
          **kwargs,
      )
  
imports: from os import cpu_count
  import functools
  import operator
  import threading
  import warnings
  import weakref
  from ..None import futures
label_desc: Use image node_id 1 to create a new Pool object  with example: obj = Pool(processes, initializer, initargs)