code: def verify_deprecation(callback):
      with warnings.catch_warnings(record=True) as w:
          # Cause all warnings to always be triggered.
          warnings.simplefilter("always")
          # Trigger a warning.
          callback()
          # Verify DeprecationWarning
          expected_warning = (
              "WARNING: `transform_translation` is now deprecated."
              " Use `transforms.translation` instead."
          )
          assert len(w) == 1
          assert issubclass(w[-1].category, DeprecationWarning)
          assert expected_warning == str(w[-1].message)
  
imports: import random
  import warnings
  import numpy
  from scipy.spatial.transform import Rotation
  from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops.transforms
  import nvidia.dali.ops
  import nvidia.dali.fn
  from nvidia.dali import pipeline_def
  from sequences_test_utils import ArgData, ArgDesc, sequence_suite_helper, ArgCb, ParamsProvider
  from nose_utils import assert_raises
label_desc: Use image node_id 25 for calling a global function with example usage: verify_deprecation(callback) without return types