docstr: Test height condition for peaks.
docstr_tok: ["Test","height","condition","for","peaks","."]
code: def test_height_condition(self):
      """
      Test height condition for peaks.
      """
      x = (0.0, 1 / 3, 0.0, 2.5, 0, 4.0, 0)
      peaks, props = find_peaks(x, height=(None, None))
      assert_equal(peaks, np.array([1, 3, 5]))
      assert_equal(props["peak_heights"], np.array([1 / 3, 2.5, 4.0]))
      assert_equal(find_peaks(x, height=0.5)[0], np.array([3, 5]))
      assert_equal(find_peaks(x, height=(None, 3))[0], np.array([1, 3]))
      assert_equal(find_peaks(x, height=(2, 3))[0], np.array([3]))
  
imports: import copy
  import numpy
  from numpy.testing import assert_, assert_equal, assert_allclose, assert_array_equal
  import pytest
  from pytest import raises, warns
  from scipy.signal._peak_finding import argrelmax, argrelmin, peak_prominences, peak_widths, _unpack_condition_args, find_peaks, find_peaks_cwt, _identify_ridge_lines
  from scipy.signal.windows import gaussian
  from scipy.signal._peak_finding_utils import _local_maxima_1d, PeakPropertyWarning
label_desc: Use image node_id 3 for calling the TestFindPeaks obj's underlying member method code with example usage: obj.test_height_condition() without return types