docstr: Tests resample() raises error for wrong method name.
docstr_tok: ["Tests","resample","(",")","raises","error","for","wrong","method","name","."]
code: def test_resample_disallows_invalid_method_arguments(self, method):
      """Tests resample() raises error for wrong method name."""
      with self.assertRaises(ValueError):
          _ = self.create_resampled_signals(
              n_before=self.n_smaller,
              n_after=self.n_larger,
              add_endpoint=True,
              method=method,
          )
  
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 12 for calling the ResampleTest obj's underlying member method code with example usage: obj.test_resample_disallows_invalid_method_arguments(method) without return types