code: def test_meas_date(mocked_meas_date_file):
      """Test successful extraction of measurement date."""
      vhdr_f, expected_meas, expected_meas_repr = mocked_meas_date_file
      raw = read_raw_brainvision(vhdr_f)
      assert expected_meas_repr in repr(raw.info)
      if expected_meas is None:
          assert raw.info["meas_date"] is None
      else:
          assert raw.info["meas_date"] == expected_meas
  
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 4 for calling a global function with example usage: test_meas_date(mocked_meas_date_file) without return types