code: def test_apply_impulse_response(self):
      sample_len = 1024
      samples_in = np.random.normal(0, 1, size=sample_len).astype(
          np.float32
      )
      sample_rate = 16000
  
      add_ir_transform = ApplyImpulseResponse(
          ir_path=os.path.join(DEMO_DIR, "ir"), p=1.0
      )
  
      # Check that misc_file.txt is not one of the IR file candidates, as it's not audio
      assert len(add_ir_transform.ir_files) == 2
  
      augmenter = Compose([add_ir_transform])
  
      assert len(samples_in) == sample_len
      samples_out = augmenter(
          samples=samples_in, sample_rate=sample_rate
      )
  
      # Check parameters
      assert augmenter.transforms[0].parameters["should_apply"]
      assert (
          augmenter.transforms[0]
          .parameters["ir_file_path"]
          .endswith(".wav")
      )
  
      assert samples_out.dtype == np.float32
      assert samples_out.shape == samples_in.shape
  
file_path: audiomentations/tests/test_apply_impulse_response.py
imports: import os
  import pickle
  import numpy
  from audiomentations import ApplyImpulseResponse
  from audiomentations.core.composition import Compose
  from demo.demo import DEMO_DIR
label_desc: Use image node_id 1 for calling the TestImpulseResponse obj's underlying member method code with example usage: obj.test_apply_impulse_response() without return types