code: def transform(self, results: dict) -> dict:
      if "phrases" in results:
          tokens_positive = [
              phrase["tokens_positive"]
              for phrase in results["phrases"].values()
          ]
          results["tokens_positive"] = tokens_positive
      else:
          text = results["text"]
          results["text"] = list(text.values())
      return 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 1 for calling the LoadTextAnnotations obj's underlying member method code with example usage: obj.transform(results) and returns: results