code: def _transform_to_aug(tfm_or_aug):
      """
      Wrap Transform into Augmentation.
      Private, used internally to implement augmentations.
      """
      assert isinstance(
          tfm_or_aug, (Transform, Augmentation)
      ), tfm_or_aug
      if isinstance(tfm_or_aug, Augmentation):
          return tfm_or_aug
      else:
          return _TransformToAug(tfm_or_aug)
  
imports: import inspect
  import numpy
  import pprint
  from typing import Any, List, Optional, Tuple, Union
  from fvcore.transforms.transform import Transform, TransformList
label_desc: Use image node_id 3 for calling a global function with example usage: _transform_to_aug(tfm_or_aug) and returns: tfm_or_aug, _TransformToAug