class_docstr: Tests SignalConv against scipy.signal.
class_docstr_tok: ["Tests","SignalConv","against","scipy.signal","."]
code: def run_or_fail(
      self,
      method,
      batch,
      input_support,
      channels,
      filters,
      kernel_support,
      corr,
      strides_down,
      strides_up,
      padding,
      extra_pad_end,
      channel_separable,
      data_format,
      activation,
      use_bias,
  ):
      args = dict(locals())
      del args["self"]
      del args["method"]
      if self.is_implemented(**args):
          try:
              method(**args)
          except:
              msg = []
              for k in sorted(args):
                  msg.append(f"{k}={args[k]}")
              print("Failed when it shouldn't have: " + ", ".join(msg))
              raise
      else:
          try:
              with self.assertRaisesRegexp(
                  NotImplementedError, "SignalConv"
              ):
                  method(**args)
          except:
              msg = []
              for k in sorted(args):
                  msg.append(f"{k}={args[k]}")
              print(
                  "Did not fail when it should have: " + ", ".join(msg)
              )
              raise
  
imports: import os
  from absl.testing import parameterized
  import numpy
  import scipy.signal
  import tensorflow
  from tensorflow_compression.python.layers import initializers
  from tensorflow_compression.python.layers import parameters
  from tensorflow_compression.python.layers import signal_conv
label_desc: Use image node_id 7 for calling the ConvolutionsTest obj's underlying member method code with example usage: obj.run_or_fail(method, batch, input_support, channels, filters, kernel_support, corr, strides_down, strides_up, padding, extra_pad_end, channel_separable, data_format, activation, use_bias) without return types