code: def test_dict_completion(dict_, match, extras):
      """Test readable dict completions."""
      regex = re.compile(match)
      got = set(
          FIFF[key] for key in FIFF if regex.search(key) is not None
      )
      for e in extras:
          got.add(e)
      want = set(dict_)
      assert got == want, match
  
file_path: mne-python/mne/_fiff/tests/test_constants.py
imports: import os
  import re
  import shutil
  import zipfile
  import numpy
  import pooch
  import pytest
  from mne._fiff.constants import FIFF, FWD, _ch_coil_type_named, _ch_kind_named, _ch_unit_mul_named, _ch_unit_named, _coord_frame_named, _dig_cardinal_named, _dig_kind_named
  from mne.forward._make_forward import _read_coil_defs
  from mne.utils import requires_good_network
label_desc: Use image node_id 2 for calling a global function with example usage: test_dict_completion(dict_, match, extras) without return types