docstr: Apply the prepared filter to the specified axis of a nD signal x
docstr_tok: ["Apply","the","prepared","filter","to","the","specified","axis","of","a","nD","signal","x"]
code: def apply_filter(self, x, axis=-1):
      """Apply the prepared filter to the specified axis of a nD signal x"""
      output_len = _output_len(
          len(self._h_trans_flip), x.shape[axis], self._up, self._down
      )
      output_shape = np.asarray(x.shape)
      output_shape[axis] = output_len
      out = np.zeros(output_shape, dtype=self._output_type, order="C")
      axis = axis % x.ndim
      _apply(
          np.asarray(x, self._output_type),
          self._h_trans_flip,
          out,
          self._up,
          self._down,
          axis,
      )
      return out
  
file_path: catboost/contrib/python/scipy/py2/scipy/signal/_upfirdn.py
imports: import numpy
  from ._upfirdn_apply import _output_len, _apply
label_desc: Use image node_id 2 for calling the _UpFIRDn obj's underlying member method code with example usage: obj.apply_filter(x, axis) and returns: out