code: def _check_vertices_match(v1, v2, name):
      if not np.array_equal(v1, v2):
          ext = ""
          if np.isin(v2, v1).all():
              ext = " Vertices were likely excluded during forward computation."
          raise ValueError(
              "vertices do not match between morph (%s) and stc (%s) for %s:\n%s"
              '\n%s\nPerhaps src_to=fwd["src"] needs to be passed when calling '
              "compute_source_morph.%s"
              % (len(v1), len(v2), name, v1, v2, ext)
          )
  
imports: import copy
  import os.path
  import warnings
  import numpy
  from scipy import sparse
  from .fixes import _get_img_fdata
  from .morph_map import read_morph_map
  from .parallel import parallel_func
  from .source_estimate import _BaseSourceEstimate, _BaseSurfaceSourceEstimate, _BaseVolSourceEstimate, _get_ico_tris
  from .source_space._source_space import SourceSpaces, _ensure_src, _grid_interp
  from .surface import _compute_nearest, mesh_edges, read_surface
  from .utils import BunchConst, ProgressBar, _check_fname, _check_option, _custom_lru_cache, _ensure_int, _import_h5io_funcs, _import_nibabel, _validate_type, check_version, fill_doc, get_subjects_dir, logger, use_log_level, verbose, warn
  from .utils import warn
label_desc: Use image node_id 23 for calling a global function with example usage: _check_vertices_match(v1, v2, name) without return types