code: def _read_string(fid, n_bytes, decode=True):
      """Read string."""
      s0 = fid.read(n_bytes)
      s = s0.split(b"\x00")[0]
      return s.decode("utf-8") if decode else s
  
file_path: mne-python/mne/io/ctf/res4.py
imports: import os.path
  import numpy
  from ...utils import logger
  from .constants import CTF
label_desc: Use image node_id 3 for calling a global function with example usage: _read_string(fid, n_bytes, decode) and returns: unknown