code: def _str_removesuffix(self, suffix: str):
      ends_with = pc.ends_with(self._pa_array, pattern=suffix)
      removed = pc.utf8_slice_codeunits(
          self._pa_array, 0, stop=-len(suffix)
      )
      result = pc.if_else(ends_with, removed, self._pa_array)
      return type(self)(result)
  
file_path: pandas/pandas/core/arrays/_arrow_string_mixins.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Literal
  import numpy
  from pandas.compat import pa_version_under10p1
label_desc: Use image node_id 8 for calling the ArrowStringArrayMixin obj's underlying member method code with example usage: obj._str_removesuffix(suffix) and returns: type