code: def test_spec_augment_depth_exception():
      """
      Checks that SpecAugments fails if Spectrogram has depth greater than 1.
      """
  
      data_format = "default"
      with pytest.raises(RuntimeError):
          batch_src, input_shape = get_spectrogram(
              data_format=data_format, n_ch=4
          )
  
          model = tf.keras.Sequential()
          spec_augment = SpecAugment(
              input_shape=input_shape,
              freq_mask_param=5,
              time_mask_param=10,
              data_format=data_format,
          )
          model.add(spec_augment)
          _ = model(batch_src, training=True)[0]
  
file_path: kapre/tests/test_augmentation.py
imports: import pytest
  import numpy
  import tensorflow
  from kapre.augmentation import ChannelSwap, SpecAugment
  from kapre.backend import _CH_FIRST_STR, _CH_LAST_STR, _CH_DEFAULT_STR
  from utils import get_audio, get_spectrogram, save_load_compare
label_desc: Use image node_id 3 for calling a global function with example usage: test_spec_augment_depth_exception() without return types