code: def test__plot_one_ale_num(explanation, constant):
      """Test the `_plot_one_ale_num` function."""
      feature = 0
      targets = [0, 1]
  
      fig, ax = plt.subplots()
      ax = _plot_one_ale_num(
          exp=explanation,
          feature=feature,
          targets=targets,
          constant=constant,
          ax=ax,
          legend=True,
          line_kw={"label": None},
      )
  
      x1, y1 = ax.lines[1].get_xydata().T
      x2, y2 = ax.lines[2].get_xydata().T
  
      assert np.allclose(
          x1, explanation.data["feature_values"][feature]
      )
      assert np.allclose(
          x2, explanation.data["feature_values"][feature]
      )
  
      expected_ale_values = (
          explanation.data["ale_values"][feature]
          + constant * explanation.data["constant_value"]
      )
      assert np.allclose(y1, expected_ale_values[:, targets[0]])
      assert np.allclose(y2, expected_ale_values[:, targets[1]])
  
      assert ax.get_legend().texts[0].get_text() == f"c_{targets[0]}"
      assert ax.get_legend().texts[1].get_text() == f"c_{targets[1]}"
      assert ax.get_xlabel() == f"f_{feature}"
  
      # extract deciles form the plot
      segments = ax.collections[0].get_segments()
      deciles = [segment[0][0] for segment in segments]
      assert np.allclose(
          deciles, explanation.data["feature_deciles"][feature][1:]
      )
  
imports: import re
  from copy import deepcopy
  import matplotlib.pyplot
  import numpy
  import pytest
  from numpy.testing import assert_allclose
  from pytest_lazyfixture import lazy_fixture
  from alibi.api.defaults import DEFAULT_DATA_ALE, DEFAULT_META_ALE
  from alibi.api.interfaces import Explanation
  from alibi.explainers.ale import _plot_one_ale_num, adaptive_grid, ale_num, get_quantiles, minimum_satisfied, plot_ale
label_desc: Use image node_id 10 for calling a global function with example usage: test__plot_one_ale_num(explanation, constant) without return types