class_docstr: Compose multiple transforms sequentially.
  
  And record "img" field of all results in one list.
code: def __init__(self, transforms, intermediate_imgs):
      super().__init__(transforms=transforms)
      self.intermediate_imgs = intermediate_imgs
  
imports: import argparse
  import os.path
  import sys
  from typing import Optional, Tuple
  import cv2
  import mmcv
  import numpy
  from mmengine.config import Config, DictAction
  from mmengine.dataset import Compose
  from mmengine.registry import init_default_scope
  from mmengine.utils import ProgressBar
  from mmengine.visualization import Visualizer
  from mmocr.registry import DATASETS, VISUALIZERS
label_desc: Use image node_id 1 to create a new InspectCompose object from inherited base classes: Compose with example: obj = InspectCompose(transforms, intermediate_imgs)