code: def test_freeze_shift_with_different_sample_rates(self):
      samples1 = np.array([1.0, 0.5, 0.25, 0.125], dtype=np.float32)
      samples2 = np.array(
          [1.0, 0.5, 0.25, 0.125, 0.3, 0.4, 0.5, 0.2], dtype=np.float32
      )
      sample_rate_1 = 1
      sample_rate_2 = 2
  
      augment = Shift(
          min_shift=0.5,
          max_shift=0.5,
          rollover=False,
          fade_duration=0.0,
          p=1.0,
      )
      augment.randomize_parameters(samples1, sample_rate_1)
      augment.freeze_parameters()
      shifted_samples1 = augment(samples1, sample_rate_1)
      shifted_samples2 = augment(samples2, sample_rate_2)
  
      num_samples1_shifted = np.count_nonzero(shifted_samples1 == 0)
      num_samples2_shifted = np.count_nonzero(shifted_samples2 == 0)
  
      assert num_samples1_shifted == 2
      assert num_samples2_shifted == 4
  
file_path: audiomentations/tests/test_shift.py
imports: import numpy
  import pytest
  from numpy.testing import assert_almost_equal
  from audiomentations import Shift
label_desc: Use image node_id 11 for calling the TestShift obj's underlying member method code with example usage: obj.test_freeze_shift_with_different_sample_rates() without return types