code: def __init__(self, generator, local_rank, max_prefetch=6):
      super(BackgroundGenerator, self).__init__()
      self.queue = Queue.Queue(max_prefetch)
      self.generator = generator
      self.local_rank = local_rank
      self.daemon = True
      self.start()
  
imports: import os
  import os.path
  import queue
  import mxnet
  import pickle
  import threading
  import logging
  import numpy
  import insightface
  from insightface.utils import face_align
  import torch
  from torch.utils.data import DataLoader, Dataset
  from torchvision import transforms
  import cv2
  import albumentations
  from albumentations.pytorch import ToTensorV2
  from .augs import RectangleBorderAugmentation
label_desc: Use image node_id 1 to create a new BackgroundGenerator object from inherited base classes: threading with example: obj = BackgroundGenerator(generator, local_rank, max_prefetch)