code: def _get_file_names(binfile):
      """Guess the filenames based on predicted suffixes."""
      binfile = pathlib.Path(
          _check_fname(
              binfile, overwrite="read", must_exist=True, name="fname"
          )
      )
      if not (
          binfile.suffix == ".bin" and binfile.stem.endswith("_meg")
      ):
          raise ValueError(
              f"File must be a filename ending in _meg.bin, got {binfile}"
          )
      files = dict()
      dir_ = binfile.parent
      root = binfile.stem[:-4]  # no _meg
      files["bin"] = dir_ / (root + "_meg.bin")
      files["meg"] = dir_ / (root + "_meg.json")
      files["chans"] = dir_ / (root + "_channels.tsv")
      files["positions"] = dir_ / (root + "_positions.tsv")
      files["coordsystem"] = dir_ / (root + "_coordsystem.json")
      return files
  
imports: import json
  import pathlib
  import numpy
  from ..._fiff._digitization import _make_dig_points
  from ..._fiff.constants import FIFF
  from ..._fiff.meas_info import _empty_info
  from ..._fiff.utils import _read_segments_file
  from ..._fiff.write import get_new_file_id
  from ...transforms import Transform, apply_trans, get_ras_to_neuromag_trans
  from ...utils import _check_fname, fill_doc, verbose, warn
  from ..base import BaseRaw
  from .sensors import _get_plane_vectors, _get_pos_units, _refine_sensor_orientation, _size2units
label_desc: Use image node_id 7 for calling a global function with example usage: _get_file_names(binfile) and returns: files