code: def test_coodinates_extraction():
      """Test reading of [Coordinates] section if present."""
      # vhdr 2 has a Coordinates section
      with pytest.warns(RuntimeWarning, match="coordinate information"):
          raw = read_raw_brainvision(vhdr_v2_path)
  
      # Basic check of extracted coordinates
      assert raw.info["dig"] is not None
      diglist = raw.info["dig"]
      coords = np.array([dig["r"] for dig in diglist])
      EXPECTED_SHAPE = (
          # HL, HR, Vb, ReRef are not set in dig
          # but LPA, Nasion, RPA are estimated
          len(raw.ch_names) - 4 + 3,
          3,
      )
      assert coords.shape == EXPECTED_SHAPE
  
      # Make sure the scaling seems right
      # a coordinate more than 20cm away from origin is implausible
      assert coords.max() < 0.2
  
      # vhdr 1 does not have a Coordinates section
      raw2 = read_raw_brainvision(vhdr_path)
      assert raw2.info["dig"] is None
  
imports: import datetime
  import re
  import shutil
  from pathlib import Path
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal
  from mne import concatenate_raws, pick_types, read_annotations
  from mne._fiff.constants import FIFF
  from mne.annotations import events_from_annotations
  from mne.datasets import testing
  from mne.io import read_raw_brainvision, read_raw_fif
  from mne.io.tests.test_raw import _test_raw_reader
  from mne.utils import _stamp_to_dt, object_diff
label_desc: Use image node_id 15 for calling a global function with example usage: test_coodinates_extraction() without return types