code: def test_farid_h_horizontal():
      """Horizontal Farid on an edge should be a horizontal line."""
      i, j = np.mgrid[-5:6, -5:6]
      image = (i >= 0).astype(float)
      result = filters.farid_h(image)
      # Check if result match transform direction
      assert np.all(result[i == 0] == result[i == 0][0])
      assert_allclose(result[np.abs(i) > 2], 0, atol=1e-10)
  
imports: import numpy
  import pytest
  from numpy.testing import assert_, assert_allclose, assert_array_almost_equal
  from skimage import data, filters
  from skimage._shared.utils import _supported_float_type
  from skimage.filters.edges import _mask_filter_result
label_desc: Use image node_id 49 for calling a global function with example usage: test_farid_h_horizontal() without return types