code: def retrieve_data_cfg(config_path, skip_type):
      cfg = Config.fromfile(config_path)
      train_data_cfg = cfg.data.train
      train_data_cfg["pipeline"] = [
          x
          for x in train_data_cfg.pipeline
          if x["type"] not in skip_type
      ]
  
      return cfg
  
file_path: insightface/detection/scrfd/tools/browse_dataset.py
imports: import argparse
  import os
  from pathlib import Path
  import mmcv
  from mmcv import Config
  from mmdet.datasets.builder import build_dataset
label_desc: Use image node_id 2 for calling a global function with example usage: retrieve_data_cfg(config_path, skip_type) and returns: cfg