code: def trim_suffix(string: str, suffix: str) -> str:
      if string.endswith(suffix):
          return string[: -len(suffix)]
      else:
          return string
  
imports: import os
  import subprocess
  import sys
  import tempfile
  from typing import Any, Dict, Optional, Tuple
  from absl import app
  from absl import flags
  from absl import logging
  import tensorflow
label_desc: Use image node_id 3 for calling a global function with example usage: trim_suffix(string, suffix) and returns: string, string