code: def __init__(
      self,
      file_root,
      annotations_file,
      batch_size,
      image_size,
      num_threads,
      device_id,
      seed,
      **kwargs,
  ):
      self._file_root = file_root
      self._annotations_file = annotations_file
  
      self._batch_size = batch_size
      self._image_size = image_size
      self._num_threads = num_threads
      self._device_id = device_id
  
      self._use_gpu = kwargs.get("use_gpu", False)
      self._is_training = kwargs.get("is_training", False)
      self._use_mosaic = kwargs.get("use_mosaic", False)
  
      self._pipe = dali.pipeline.Pipeline(
          batch_size=batch_size,
          num_threads=num_threads,
          device_id=device_id,
          seed=seed,
      )
      self._define_pipeline()
  
imports: import nvidia.dali
  import nvidia.dali.plugin.tf
  import tensorflow
  from .None import ops
label_desc: Use image node_id 1 to create a new YOLOv4Pipeline object  with example: obj = YOLOv4Pipeline(file_root, annotations_file, batch_size, image_size, num_threads, device_id, seed)