docstr: Test that upsample_with_window raises ValueError for downsampling.
  
  Args:
    add_endpoint: Add extra timestep at end of resampling.
docstr_tok: ["Test","that","upsample_with_window","raises","ValueError","for","downsampling",".","Args",":","add_endpoint",":","Add","extra","timestep","at","end","of","resampling","."]
code: def test_window_checks_for_downsampling(self, add_endpoint):
      """Test that upsample_with_window raises ValueError for downsampling.
  
      Args:
        add_endpoint: Add extra timestep at end of resampling.
      """
      with self.assertRaises(ValueError):
          _ = self.create_resampled_signals(
              n_before=self.n_larger,
              n_after=self.n_smaller,
              add_endpoint=add_endpoint,
              method="window",
          )
  
imports: from absl.testing import parameterized
  from ddsp import core
  import librosa
  import numpy
  from scipy import signal
  import tensorflow.compat.v2
label_desc: Use image node_id 8 for calling the ResampleTest obj's underlying member method code with example usage: obj.test_window_checks_for_downsampling(add_endpoint) without return types