class_docstr: **Deprecated**. Load batches in the background.
  
  Deprecated. Use ``imgaug.multicore.Pool`` instead.
  
  Loaded batches can be accesses using :attr:`imgaug.BatchLoader.queue`.
  
  Parameters
  ----------
  load_batch_func : callable or generator
      Generator or generator function (i.e. function that yields Batch
      objects) or a function that returns a list of Batch objects.
      Background loading automatically stops when the last batch was yielded
      or the last batch in the list was reached.
  
  queue_size : int, optional
      Maximum number of batches to store in the queue. May be set higher
      for small images and/or small batches.
  
  nb_workers : int, optional
      Number of workers to run in the background.
  
  threaded : bool, optional
      Whether to run the background processes using threads (True) or full
      processes (False).
code: def _load_batches(
      cls, load_batch_func, queue_internal, join_signal, seedval
  ):
      # pylint: disable=broad-except
      if seedval is not None:
          random.seed(seedval)
          np.random.seed(seedval)
          iarandom.seed(seedval)
  
      try:
          gen = (
              load_batch_func()
              if not ia.is_generator(load_batch_func)
              else load_batch_func
          )
          for batch in gen:
              assert isinstance(batch, Batch), (
                  "Expected batch returned by load_batch_func to "
                  "be of class imgaug.Batch, got %s." % (type(batch),)
              )
              batch_pickled = pickle.dumps(batch, protocol=-1)
              while not join_signal.is_set():
                  try:
                      queue_internal.put(batch_pickled, timeout=0.005)
                      break
                  except QueueFull:
                      pass
              if join_signal.is_set():
                  break
      except Exception:
          traceback.print_exc()
      finally:
          queue_internal.put("")
      time.sleep(0.01)
  
imports: from __future__ import print_function, division, absolute_import
  import sys
  import multiprocessing
  import threading
  import traceback
  import time
  import random
  import platform
  import numpy
  import cv2
  import imgaug.imgaug
  import imgaug.random
  from imgaug.augmentables.batches import Batch, UnnormalizedBatch
label_desc: Use image node_id 5 for calling the BatchLoader obj's underlying member method code with example usage: obj._load_batches(cls, load_batch_func, queue_internal, join_signal, seedval) without return types