code: def removesuffix(somestring, suffix):
      """Removed a suffix from a string
      Arguments
      ---------
      somestring : str
          Any string.
      suffix : str
          Suffix to be removed from somestring.
      Returns
      ------
      string resulting from suffix removed from somestring, if found, unchanged otherwise
      """
      if somestring.endswith(suffix):
          return somestring[: -1 * len(suffix)]
      else:
          return somestring
  
file_path: speechbrain/recipes/ESC50/esc50_prepare.py
imports: import os
  import shutil
  import json
  import logging
  import torchaudio
  from speechbrain.dataio.dataio import read_audio
  from speechbrain.dataio.dataio import load_data_csv
  from speechbrain.utils.fetching import fetch
label_desc: Use image node_id 8 for calling a global function with example usage: removesuffix(somestring, suffix) and returns: somestring, somestring