code: def strip_suffix(filename, suffix=None):
      """
      Strip off the suffix of the given filename or string.
  
      Parameters
      ----------
      filename : str
          Filename or string to strip.
      suffix : str, optional
          Suffix to be stripped off (e.g. '.txt' including the dot).
  
      Returns
      -------
      str
          Filename or string without suffix.
  
      """
      if suffix is not None and filename.endswith(suffix):
          return filename[: -len(suffix)]
      return filename
  
imports: from __future__ import absolute_import, division, print_function
  import argparse
  import contextlib
  import io
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: strip_suffix(filename, suffix) and returns: filename, filename