code: def test_anonymize(tmp_path):
      """Test mne anonymize."""
      check_usage(mne_anonymize)
      out_fname = op.join(tmp_path, "anon_test_raw.fif")
      with ArgvSetter(("-f", raw_fname, "-o", out_fname)):
          mne_anonymize.run()
      info = read_info(out_fname)
      assert op.exists(out_fname)
      assert info["meas_date"] == _stamp_to_dt((946684800, 0))
  
imports: import glob
  import os
  import shutil
  from os import path
  from pathlib import Path
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_equal
  import mne
  from mne import concatenate_raws, read_bem_solution, read_bem_surfaces, read_source_spaces, read_surface
  from mne.bem import ConductorModel, convert_flash_mris
  from mne.commands import mne_anonymize, mne_browse_raw, mne_bti2fiff, mne_clean_eog_ecg, mne_compare_fiff, mne_compute_proj_ecg, mne_compute_proj_eog, mne_coreg, mne_flash_bem, mne_kit2fiff, mne_make_scalp_surfaces, mne_prepare_bem_model, mne_report, mne_setup_forward_model, mne_setup_source_space, mne_show_fiff, mne_show_info, mne_surf2bem, mne_sys_info, mne_watershed_bem, mne_what
  from mne.datasets import testing
  from mne.io import read_info, read_raw_fif, show_fiff
  from mne.utils import ArgvSetter, _record_warnings, _stamp_to_dt, requires_freesurfer, requires_mne
label_desc: Use image node_id 21 for calling a global function with example usage: test_anonymize(tmp_path) without return types