code: def test_hsp_elp():
      """Test KIT usage of *.elp and *.hsp files against *.txt files."""
      raw_txt = read_raw_kit(
          sqd_path, mrk_path, elp_txt_path, hsp_txt_path
      )
      raw_elp = read_raw_kit(sqd_path, mrk_path, elp_path, hsp_path)
  
      # head points
      pts_txt = np.array(
          [dig_point["r"] for dig_point in raw_txt.info["dig"]]
      )
      pts_elp = np.array(
          [dig_point["r"] for dig_point in raw_elp.info["dig"]]
      )
      assert_array_almost_equal(pts_elp, pts_txt, decimal=5)
  
      # transforms
      trans_txt = raw_txt.info["dev_head_t"]["trans"]
      trans_elp = raw_elp.info["dev_head_t"]["trans"]
      assert_array_almost_equal(trans_elp, trans_txt, decimal=5)
  
      # head points in device space
      pts_txt_in_dev = apply_trans(linalg.inv(trans_txt), pts_txt)
      pts_elp_in_dev = apply_trans(linalg.inv(trans_elp), pts_elp)
      assert_array_almost_equal(
          pts_elp_in_dev, pts_txt_in_dev, decimal=5
      )
  
imports: from pathlib import Path
  import numpy
  import pytest
  import scipy.io
  from numpy.testing import assert_allclose, assert_array_almost_equal, assert_array_equal, assert_equal
  from scipy import linalg
  import mne
  from mne import Epochs, find_events, pick_types, read_events
  from mne._fiff.constants import FIFF
  from mne.datasets.testing import requires_testing_data
  from mne.io import read_epochs_kit, read_raw_fif, read_raw_kit
  from mne.io.kit.constants import KIT
  from mne.io.kit.coreg import read_sns
  from mne.io.kit.kit import get_kit_info
  from mne.io.tests.test_raw import _test_raw_reader
  from mne.surface import _get_ico_surface
  from mne.transforms import apply_trans
  from mne.utils import assert_dig_allclose
label_desc: Use image node_id 8 for calling a global function with example usage: test_hsp_elp() without return types