code: def test_meas_date(fname, timestamp, utc_offset):
      """Test meas date conversion."""
      pytest.importorskip("defusedxml")
      raw = read_raw_egi(fname, verbose="warning")
      dt = datetime.strptime(timestamp, "%Y-%m-%dT%H:%M:%S.%f%z")
      measdate = dt.astimezone(timezone.utc)
      hour_local = int(dt.strftime("%H"))
      hour_utc = int(raw.info["meas_date"].strftime("%H"))
      local_utc_diff = hour_local - hour_utc
      assert raw.info["meas_date"] == measdate
      assert raw.info["utc_offset"] == utc_offset
      assert local_utc_diff == int(utc_offset[:-2])
  
imports: import os
  import shutil
  from copy import deepcopy
  from datetime import datetime, timezone
  from pathlib import Path
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal
  from scipy import io
  from mne import find_events, pick_types
  from mne._fiff.constants import FIFF
  from mne.datasets.testing import data_path, requires_testing_data
  from mne.io import read_evokeds_mff, read_raw_egi, read_raw_fif
  from mne.io.egi.egi import _combine_triggers
  from mne.io.tests.test_raw import _test_raw_reader
  from mne.utils import object_diff
label_desc: Use image node_id 11 for calling a global function with example usage: test_meas_date(fname, timestamp, utc_offset) without return types