code: def split_name_ext(fname):
      """Return name and supported file extension."""
      maxsuffixes = max(ext.count(".") for ext in _get_supported())
      suffixes = Path(fname).suffixes
      for si in range(-maxsuffixes, 0):
          ext = "".join(suffixes[si:]).lower()
          if ext in _get_readers():
              return Path(fname).name[: -len(ext)], ext
      return fname, None
  
file_path: mne-python/mne/io/_read_raw.py
imports: from functools import partial
  from pathlib import Path
  from ..utils import fill_doc
  from .base import BaseRaw
label_desc: Use image node_id 4 for calling a global function with example usage: split_name_ext(fname) and returns: fname,  None, Path,  ext