def METHOD_NAME(self, xp, scp):  # , n):
    # example from the docstring of `scipy.signal.minimum_phase`
    from scipy.signal import remez
    h_linear = remez(151, [0, 0.2, 0.3, 1.0], [1, 0], fs=2)
    if xp == cupy:
        h_linear = cupy.asarray(h_linear)
    return scp.signal.minimum_phase(h_linear, method="hilbert")