docstr: Test that the transform can freeze its parameters, e.g. to apply the effect with the
  same parameters to multiple sounds.
docstr_tok: ["Test","that","the","transform","can","freeze","its","parameters",",","e.g",".","to","apply","the","effect","with","the","same","parameters","to","multiple","sounds","."]
code: def test_freeze_parameters(self):
      """
      Test that the transform can freeze its parameters, e.g. to apply the effect with the
      same parameters to multiple sounds.
      """
      samples = np.sin(np.linspace(0, 440 * 2 * np.pi, 8000)).astype(
          np.float32
      )
      sample_rate = 16000
      augmenter = Compose(
          [PitchShift(min_semitones=1, max_semitones=12, p=1.0)]
      )
  
      first_samples = augmenter(
          samples=samples, sample_rate=sample_rate
      )
      first_parameters = deepcopy(augmenter.transforms[0].parameters)
  
      augmenter.transforms[0].min_semitones = -12
      augmenter.transforms[0].max_semitones = -1
      augmenter.transforms[0].are_parameters_frozen = True
      second_samples = augmenter(
          samples=samples, sample_rate=sample_rate
      )
  
      assert first_parameters == augmenter.transforms[0].parameters
      assert_array_equal(first_samples, second_samples)
  
file_path: audiomentations/tests/test_pitch_shift.py
imports: from copy import deepcopy
  import numpy
  from numpy.testing import assert_array_equal
  from audiomentations import PitchShift, Compose
label_desc: Use image node_id 3 for calling the TestPitchShift obj's underlying member method code with example usage: obj.test_freeze_parameters() without return types