class_docstr: Test the process of importing the models from demucs.
  
  Test methods in this test suite will check to assure correctness in factory functions,
  comparing with original hybrid demucs
class_docstr_tok: ["Test","the","process","of","importing","the","models","from","demucs",".","Test","methods","in","this","test","suite","will","check","to","assure","correctness","in","factory","functions",",","comparing","with","original","hybrid","demucs"]
code: def _assert_equal_models(
      self, factory_hdemucs, depth, nfft, sample_rate, sources
  ):
      torch.random.manual_seed(0)
      original_hdemucs = (
          self._get_original_model(sources, nfft, depth)
          .to(self.device)
          .eval()
      )
      inputs = _get_inputs(sample_rate=sample_rate, device=self.device)
      factory_output = factory_hdemucs(inputs)
      original_output = original_hdemucs(inputs)
      self.assertEqual(original_output, factory_output)
  
imports: import itertools
  from typing import List
  import torch
  from parameterized import parameterized
  from torchaudio.models._hdemucs import _HDecLayer, _HEncLayer, HDemucs, hdemucs_high, hdemucs_low
  from torchaudio_unittest.common_utils import skipIfNoModule, TestBaseMixin, TorchaudioTestCase
label_desc: Use image node_id 2 for calling the CompareHDemucsOriginal obj's underlying member method code with example usage: obj._assert_equal_models(factory_hdemucs, depth, nfft, sample_rate, sources) without return types