code: def get_modules(use_v2):
      # We need a protected import to avoid the V2 warning in case just V1 is used
      if use_v2:
          import torchvision.transforms.v2
          import torchvision.tv_tensors
  
          return torchvision.transforms.v2, torchvision.tv_tensors
      else:
          return reference_transforms, None
  
file_path: vision/references/detection/presets.py
imports: from collections import defaultdict
  import torch
  import transforms
label_desc: Use image node_id 1 for calling a global function with example usage: get_modules(use_v2) and returns: torchvision,  torchvision, reference_transforms,  None