code: def test_same_as_downsample(self):
      for _ in range(10):
          x = th.randn(2 * 3 * 4 * 100)
          rolloff = 0.945
          for old_sr in [2, 3, 4]:
              y_resampled = resample_frac(
                  x, old_sr, 1, rolloff=rolloff, zeros=16
              )
              y_lowpass = lowpass_filter(
                  x, rolloff / old_sr / 2, stride=old_sr, zeros=16
              )
              self.assertSimilar(
                  y_resampled, y_lowpass, x, f"old_sr={old_sr}"
              )
  
file_path: julius/tests/test_lowpass.py
imports: import random
  import unittest
  import torch
  from julius import LowPassFilter, LowPassFilters, lowpass_filter, resample_frac
  from julius.core import pure_tone
label_desc: Use image node_id 3 for calling the TestLowPassFilters obj's underlying member method code with example usage: obj.test_same_as_downsample() without return types