code: def test_fidsposition_information(monkeypatch, has_type):
      """Test reading file with 3 fiducial locations."""
      if not has_type:
  
          def get_bad_information(eeg, get_pos, *, montage_units):
              del eeg.chaninfo["nodatchans"]["type"]
              return _get_montage_information(
                  eeg, get_pos, montage_units=montage_units
              )
  
          monkeypatch.setattr(
              mne.io.eeglab.eeglab,
              "_get_montage_information",
              get_bad_information,
          )
      raw = read_raw_eeglab(raw_fname_chanloc_fids, montage_units="cm")
      montage = raw.get_montage()
      pos = montage.get_positions()
      n_eeg = 129
      if not has_type:
          # These should now be estimated from the data
          assert_allclose(pos["nasion"], [0, 0.0997, 0], atol=1e-4)
          assert_allclose(pos["lpa"], -pos["nasion"][[1, 0, 0]])
          assert_allclose(pos["rpa"], pos["nasion"][[1, 0, 0]])
      assert pos["nasion"] is not None
      assert pos["lpa"] is not None
      assert pos["rpa"] is not None
      assert len(pos["nasion"]) == 3
      assert len(pos["lpa"]) == 3
      assert len(pos["rpa"]) == 3
      assert len(raw.info["dig"]) == n_eeg + 3
  
imports: import os
  import shutil
  from copy import deepcopy
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_almost_equal, assert_array_equal, assert_equal
  from scipy import io
  import mne
  from mne import read_epochs_eeglab, write_events
  from mne.annotations import events_from_annotations, read_annotations
  from mne.channels import read_custom_montage
  from mne.datasets import testing
  from mne.io import read_raw_eeglab
  from mne.io.eeglab._eeglab import _readmat
  from mne.io.eeglab.eeglab import _dol_to_lod, _get_montage_information
  from mne.io.tests.test_raw import _test_raw_reader
  from mne.utils import Bunch, _check_pymatreader_installed
label_desc: Use image node_id 17 for calling a global function with example usage: test_fidsposition_information(monkeypatch, has_type) and returns: _get_montage_information