code: def _name_to_functional(name):
      import torchvision.transforms.v2.functional  # noqa
  
      try:
          return getattr(torchvision.transforms.v2.functional, name)
      except AttributeError:
          raise ValueError(
              f"Could not find functional with name '{name}' in torchvision.transforms.v2.functional."
          ) from None
  
file_path: vision/torchvision/transforms/v2/functional/_utils.py
imports: import functools
  from typing import Any, Callable, Dict, List, Optional, Sequence, Type, Union
  import torch
  from torchvision import tv_tensors
label_desc: Use image node_id 4 for calling a global function with example usage: _name_to_functional(name) and returns: getattr