code: def mocked_meas_date_file(_mocked_meas_date_data, request):
      """Prepare a generator for use in test_meas_date."""
      MEAS_DATE_LINE = 11  # see test.vmrk file
      vhdr_fname, vmrk_fname, lines = _mocked_meas_date_data
  
      lines[MEAS_DATE_LINE] = request.param["content"]
      with open(vmrk_fname, "w") as fout:
          fout.writelines(lines)
      meas_date = request.param["meas_date"]
      if meas_date is not None:
          meas_date = _stamp_to_dt(meas_date)
  
      yield vhdr_fname, meas_date, request.param["meas_date_repr"]
  
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 3 for calling a global function with example usage: mocked_meas_date_file(_mocked_meas_date_data, request) without return types