code: def test_replace_mode_two_repeats_with_crossfading(self):
      augment = RepeatPart(
          mode="replace", crossfade_duration=0.005, p=1.0
      )
      part_num_samples = int(0.25 * 44100)
      augment.parameters = {
          "should_apply": True,
          "part_num_samples": part_num_samples,
          "repeats": 2,
          "part_start_index": 142,
      }
      augment.freeze_parameters()
  
      sample_rate = 44100
      amplitude = 0.3
      samples = get_chirp_test(sample_rate, duration=2) * amplitude
      processed_samples = augment(
          samples=samples, sample_rate=sample_rate
      )
  
      assert processed_samples.dtype == np.float32
  
      augment_without_crossfade = RepeatPart(
          mode="replace", crossfade_duration=0.000, p=1.0
      )
      augment_without_crossfade.parameters = augment.parameters
      augment_without_crossfade.freeze_parameters()
      processed_samples_without_crossfade = augment_without_crossfade(
          samples=samples, sample_rate=sample_rate
      )
  
      idx0 = (
          augment.parameters["part_start_index"] + part_num_samples - 1
      )
      idx1 = idx0 + 1
      seam_impulse_magnitude_without_crossfade = abs(
          processed_samples_without_crossfade[..., idx1]
          - processed_samples_without_crossfade[..., idx0]
      )
      assert (
          seam_impulse_magnitude_without_crossfade > amplitude
      )  # audible click!
      seam_impulse_magnitude_with_crossfade = abs(
          processed_samples[..., idx1] - processed_samples[..., idx0]
      )
      assert (
          seam_impulse_magnitude_with_crossfade < 0.11 * amplitude
      )  # smooth
  
      assert (
          processed_samples.shape
          == processed_samples_without_crossfade.shape
      )
  
imports: from copy import deepcopy
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from audiomentations import Gain, AdjustDuration, RepeatPart, Shift
  from audiomentations.core.utils import get_crossfade_mask_pair
  from tests.test_filter_transforms import get_chirp_test
label_desc: Use image node_id 13 for calling the TestRepeatPart obj's underlying member method code with example usage: obj.test_replace_mode_two_repeats_with_crossfading() without return types