code: def removesuffix(string: str, suffix: str) -> str:
      """Remove a suffix from a string.
  
      Backport of `str.removesuffix` for Python < 3.9
      """
      if string.endswith(suffix):
          return string[: -len(suffix)]
      return string
  
imports: from __future__ import annotations
  import os
  import re
  import inspect
  import functools
  from typing import Any, Tuple, Mapping, TypeVar, Callable, Iterable, Sequence, cast, overload
  from pathlib import Path
  from typing_extensions import TypeGuard
  import sniffio
  from .._types import Headers, NotGiven, FileTypes, NotGivenOr, HeadersLike
  from .._compat import parse_date, parse_datetime
label_desc: Use image node_id 28 for calling a global function with example usage: removesuffix(string, suffix) and returns: string, string