code: def _endswith(whole: str, end: str) -> bool:
      return whole.endswith(end)
  
file_path: nibabel/nibabel/filename_parser.py
imports: from __future__ import annotations
  import os
  import pathlib
  import typing
label_desc: Use image node_id 4 for calling a global function with example usage: _endswith(whole, end) and returns: whole