code: def _check_data(xp, rs):
      """
      Check each axes has identical lines
  
      Parameters
      ----------
      xp : matplotlib Axes object
      rs : matplotlib Axes object
      """
      import matplotlib.pyplot as plt
  
      xp_lines = xp.get_lines()
      rs_lines = rs.get_lines()
  
      assert len(xp_lines) == len(rs_lines)
      for xpl, rsl in zip(xp_lines, rs_lines):
          xpdata = xpl.get_xydata()
          rsdata = rsl.get_xydata()
          tm.assert_almost_equal(xpdata, rsdata)
  
      plt.close("all")
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  import numpy
  from pandas.core.dtypes.api import is_list_like
  import pandas
  from pandas import Series
  import pandas._testing
label_desc: Use image node_id 3 for calling a global function with example usage: _check_data(xp, rs) without return types