code: def _compute_mne_loc(coil_loc):
      """Convert a set of coils to an mne Struct.
  
      Note input coil locations are in inches.
      """
      loc = np.zeros(12)
      if (np.linalg.norm(coil_loc["inner_coil"]) == 0) and (
          np.linalg.norm(coil_loc["outer_coil"]) == 0
      ):
          return loc
  
      # channel location is inner coil location converted to meters From inches
      loc[0:3] = coil_loc["inner_coil"] / 39.370078
  
      # figure out rotation
      z_axis = coil_loc["outer_coil"] - coil_loc["inner_coil"]
      R = rotation3d_align_z_axis(z_axis)
      loc[3:13] = R.T.reshape(9)
      return loc
  
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 4 for calling a global function with example usage: _compute_mne_loc(coil_loc) and returns: loc, loc