code: def _read_pos(fname):
      """Read the .pos file and return positions as dig points."""
      nas, lpa, rpa, hpi, extra = None, None, None, None, None
      with open(fname) as fid:
          for line in fid:
              line = line.strip()
              if len(line) > 0:
                  parts = line.split()
                  # The lines can have 4 or 5 parts. First part is for the id,
                  # which can be an int or a string. The last three are for xyz
                  # coordinates. The extra part is for additional info
                  # (e.g. 'Pz', 'Cz') which is ignored.
                  if len(parts) not in [4, 5]:
                      continue
  
                  if parts[0].lower() == "nasion":
                      nas = (
                          np.array([float(p) for p in parts[-3:]])
                          / 100.0
                      )
                  elif parts[0].lower() == "left":
                      lpa = (
                          np.array([float(p) for p in parts[-3:]])
                          / 100.0
                      )
                  elif parts[0].lower() == "right":
                      rpa = (
                          np.array([float(p) for p in parts[-3:]])
                          / 100.0
                      )
                  elif "hpi" in parts[0].lower():
                      if hpi is None:
                          hpi = list()
                      hpi.append(
                          np.array([float(p) for p in parts[-3:]])
                          / 100.0
                      )
                  else:
                      if extra is None:
                          extra = list()
                      extra.append(
                          np.array([float(p) for p in parts[-3:]])
                          / 100.0
                      )
  
      return _artemis123_read_pos(nas, lpa, rpa, hpi, extra)
  
file_path: mne-python/mne/io/artemis123/utils.py
imports: import os.path
  import numpy
  from ..._fiff._digitization import _artemis123_read_pos
  from ...transforms import rotation3d_align_z_axis
  from ...utils import logger
label_desc: Use image node_id 5 for calling a global function with example usage: _read_pos(fname) and returns: _artemis123_read_pos