code: def test_hilbert(self):
      # compare to MATLAB output of reference implementation
  
      # f=[0 0.3 0.5 1];
      # a=[1 1 0 0];
      # h=remez(11,f,a);
      h = remez(12, [0, 0.3, 0.5, 1], [1, 0], fs=2.0)
      k = [
          0.349585548646686,
          0.373552164395447,
          0.326082685363438,
          0.077152207480935,
          -0.129943946349364,
          -0.059355880509749,
      ]
      m = minimum_phase(h, "hilbert")
      assert_allclose(m, k, rtol=5e-3)
  
      # f=[0 0.8 0.9 1];
      # a=[0 0 1 1];
      # h=remez(20,f,a);
      h = remez(21, [0, 0.8, 0.9, 1], [0, 1], fs=2.0)
      k = [
          0.232486803906329,
          -0.133551833687071,
          0.151871456867244,
          -0.157957283165866,
          0.151739294892963,
          -0.129293146705090,
          0.100787844523204,
          -0.065832656741252,
          0.035361328741024,
          -0.014977068692269,
          -0.158416139047557,
      ]
      m = minimum_phase(h, "hilbert", n_fft=2**19)
      assert_allclose(m, k, rtol=2e-3)
  
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from numpy.testing import assert_almost_equal, assert_array_almost_equal, assert_equal, assert_, assert_allclose, assert_warns
  from pytest import raises
  from scipy.special import sinc
  from scipy.signal import kaiser_beta, kaiser_atten, kaiserord, firwin, firwin2, freqz, remez, firls, minimum_phase
label_desc: Use image node_id 3 for calling the TestMinimumPhase obj's underlying member method code with example usage: obj.test_hilbert() without return types