code: def transform(self, results: dict) -> dict:
      if "phrases" in results:
          return self.vg_aug(results)
      else:
          return self.od_aug(results)
  
file_path: mmdetection/mmdet/datasets/transforms/text_transformers.py
imports: import json
  from mmcv.transforms import BaseTransform
  from mmdet.registry import TRANSFORMS
  from mmdet.structures.bbox import BaseBoxes
  import random
  import re
  import numpy
label_desc: Use image node_id 2 for calling the RandomSamplingNegPos obj's underlying member method code with example usage: obj.transform(results) and returns: self, self