docstr: Check that a too long fade time does not result in an exception.
docstr_tok: ["Check","that","a","too","long","fade","time","does","not","result","in","an","exception","."]
code: def test_too_long_fade_time(self):
      """Check that a too long fade time does not result in an exception."""
      sample_rate = 44100
      samples = np.sin(
          np.linspace(0, 440 * 2 * np.pi, 9 * sample_rate)
      ).astype(np.float32)
      rms_before = calculate_rms(samples)
      augmenter = AddShortNoises(
          sounds_path=os.path.join(DEMO_DIR, "short_noises"),
          min_time_between_sounds=2.0,
          max_time_between_sounds=8.0,
          min_fade_in_time=0.9,
          max_fade_in_time=0.99,
          min_fade_out_time=0.9,
          max_fade_out_time=0.99,
          p=1.0,
      )
      samples_out = augmenter(samples=samples, sample_rate=sample_rate)
      assert samples_out.dtype == np.float32
      assert samples_out.shape == samples.shape
  
      rms_after = calculate_rms(samples_out)
      assert rms_after > rms_before
  
imports: import json
  import os
  import pickle
  import random
  import numpy
  import pytest
  from numpy.testing import assert_array_equal, assert_array_almost_equal
  from audiomentations import AddShortNoises, PolarityInversion
  from audiomentations.core.transforms_interface import MultichannelAudioNotSupportedException
  from audiomentations.core.utils import calculate_rms
  from demo.demo import DEMO_DIR
label_desc: Use image node_id 6 for calling the TestAddShortNoises obj's underlying member method code with example usage: obj.test_too_long_fade_time() without return types