class_docstr: Load MOT dataset with MOT format from image stream.
  Args:
      keep_ori_im (bool): whether to keep original image, default False.
          Set True when used during MOT model inference while saving
          images or video, or used in DeepSORT.
code: def __init__(self, sample_num=-1, keep_ori_im=False, **kwargs):
      self.keep_ori_im = keep_ori_im
      self._curr_iter = 0
      self.transform = None
      self.imagequeue = deque()
  
      self.frameraw_dir = "inputimages_raw"
      if not os.path.exists(self.frameraw_dir):
          os.makedirs(self.frameraw_dir)
  
imports: import numbers
  import os
  import sys
  from collections import deque
  from collections.abc import Mapping
  import six
  from ppdet.core.workspace import register, serializable
  from ppdet.utils.logger import setup_logger
  from ppdet.data.reader import BaseDataLoader, Compose
  import cv2
  from imageio import imread, imwrite
  import numpy
  import paddle
  from paddle.framework import core
label_desc: Use image node_id 1 to create a new MOTImageStream object  with example: obj = MOTImageStream(sample_num, keep_ori_im)