code: def test_read_calibration(fname):
      """Test reading calibration data from an eyelink asc file."""
      calibrations = read_eyelink_calibration(fname)
      # These numbers were pulled from the file and confirmed.
      POSITIONS_L = (
          [960, 540],
          [960, 92],
          [960, 987],
          [115, 540],
          [1804, 540],
          [216, 145],
          [1703, 145],
          [216, 934],
          [1703, 934],
          [537, 316],
          [1382, 316],
          [537, 763],
          [1382, 763],
      )
  
      DIFF_L = (
          [9.9, -4.1],
          [-7.8, 16.0],
          [-1.9, -14.2],
          [13.5, -14.8],
          [8.1, 1.0],
          [-7.0, -15.4],
          [-10.1, -1.4],
          [-0.3, 6.9],
          [-32.3, -28.1],
          [8.2, 7.6],
          [9.6, 2.1],
          [-10.6, -2.0],
          [-11.8, 8.4],
      )
      GAZE_L = np.array(POSITIONS_L) + np.array(DIFF_L)
  
      POSITIONS_R = (
          [960, 540],
          [960, 92],
          [960, 987],
          [115, 540],
          [1804, 540],
          [216, 145],
          [1703, 145],
          [216, 934],
          [1703, 934],
          [537, 316],
          [1382, 316],
          [537, 763],
          [1382, 763],
      )
      DIFF_R = (
          [-5.2, -16.1],
          [23.7, 1.3],
          [2.0, -9.3],
          [4.4, 1.5],
          [-6.5, -12.7],
          [16.6, -7.5],
          [5.7, -1.8],
          [15.4, -3.5],
          [-2.0, -10.2],
          [0.1, 8.3],
          [1.9, -15.8],
          [-24.8, -2.3],
          [3.2, -9.2],
      )
      GAZE_R = np.array(POSITIONS_R) + np.array(DIFF_R)
  
      OFFSETS_R = [
          0.36,
          0.50,
          0.20,
          0.10,
          0.30,
          0.38,
          0.13,
          0.33,
          0.22,
          0.18,
          0.34,
          0.52,
          0.21,
      ]
  
      assert (
          len(calibrations) == 2
      )  # calibration[0] is left, calibration[1] is right
      np.testing.assert_allclose(calibrations[0]["onset"], -6.85)
      np.testing.assert_allclose(calibrations[1]["onset"], -6.85)
      assert calibrations[0]["model"] == "HV13"
      assert calibrations[1]["model"] == "HV13"
      assert calibrations[0]["eye"] == "left"
      assert calibrations[1]["eye"] == "right"
      assert calibrations[0]["avg_error"] == 0.30
      assert calibrations[0]["max_error"] == 0.90
      assert calibrations[1]["avg_error"] == 0.31
      assert calibrations[1]["max_error"] == 0.52
      np.testing.assert_array_equal(
          POSITIONS_L, calibrations[0]["positions"]
      )
      np.testing.assert_array_equal(
          POSITIONS_R, calibrations[1]["positions"]
      )
      np.testing.assert_array_equal(GAZE_L, calibrations[0]["gaze"])
      np.testing.assert_array_equal(GAZE_R, calibrations[1]["gaze"])
      np.testing.assert_array_equal(
          OFFSETS_R, calibrations[1]["offsets"]
      )
  
imports: import numpy
  import pytest
  from mne.datasets.testing import data_path, requires_testing_data
  from ..calibration import Calibration, read_eyelink_calibration
label_desc: Use image node_id 2 for calling a global function with example usage: test_read_calibration(fname) without return types