class_docstr: Load MOT dataset with MOT format from image folder or video .
  Args:
      video_file (str): path of the video file, default ''.
      frame_rate (int): frame rate of the video, use cv2 VideoCapture if not set.
      dataset_dir (str): root directory for dataset.
      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.
class_docstr_tok: ["Load","MOT","dataset","with","MOT","format","from","image","folder","or","video",".","Args",":","video_file","(","str",")",":","path","of","the","video","file",",","default","``",".","frame_rate","(","int",")",":","frame","rate","of","the","video",",","use","cv2","VideoCapture","if","not","set",".","dataset_dir","(","str",")",":","root","directory","for","dataset",".","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 set_images(self, images):
      self.image_dir = images
      self.roidbs = self._load_images()
  
imports: import os
  import sys
  import cv2
  import glob
  import numpy
  from collections import OrderedDict, defaultdict
  from .dataset import DetDataset, _make_dataset, _is_valid_file
  from ppdet.core.workspace import register, serializable
  from ppdet.utils.logger import setup_logger
label_desc: Use image node_id 8 for calling the MOTImageFolder obj's underlying member method code with example usage: obj.set_images(images) without return types