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