code: def test_augmentation_nested_decorator_fail():
      @augmentation
      def dummy(data, _):
          return data
  
      with assert_raises(
          Exception,
          glob="The `@augmentation` was applied to already decorated Augmentation.",
      ):
          augmentation(dummy, mag_range=(5, 10))
  
imports: import numpy
  import nvidia.dali.tensors
  from nvidia.dali import pipeline_def, fn, types
  from nvidia.dali.auto_aug.core import augmentation, signed_bin
  from nvidia.dali.auto_aug.core._args import forbid_unused_kwargs
  from nose2.tools import params
  from test_utils import check_batch
  from nose_utils import assert_warns, assert_raises
label_desc: Use image node_id 10 for calling a global function with example usage: test_augmentation_nested_decorator_fail() and returns: data