class_docstr: Wrapper for multiprocessing Pool that wraps function.
class_docstr_tok: ["Wrapper","for","multiprocessing","Pool","that","wraps","function","."]
code: def apply(self, func, args=None, kwds=None):
      args = args or ()
      kwds = kwds or {}
      if func is not None:
          func = _WrappedTargetWithState(self._context, func)
      return self._pool.apply(func, args=args, kwds=kwds)
  
imports: import multiprocessing
  from typing import Text
  import cloudpickle
  import gin
  import gym
  from tf_agents.system.default import multiprocessing_core
  from tf_agents.system.default.multiprocessing_core import *
label_desc: Use image node_id 2 for calling the _PoolWrapper obj's underlying member method code with example usage: obj.apply(func, args, kwds) and returns: self