code: def __init__(self, batch):
      # Don't delay the application, to avoid keeping the input
      # arguments in memory
      self.results = batch()
  
imports: import gc
  import os
  import sys
  import warnings
  import threading
  from abc import ABCMeta, abstractmethod
  from .format_stack import format_exc
  from .my_exceptions import WorkerInterrupt, TransportableException
  from ._multiprocessing_helpers import mp
  from ._compat import with_metaclass
label_desc: Use image node_id 1 to create a new ImmediateResult object from inherited base classes: object with example: obj = ImmediateResult(batch)