code: def replace_suffix(base, old_suffix, new_suffix=""):
      if base.endswith(old_suffix):
          base = base[: len(base) - len(old_suffix)] + new_suffix
      return base
  
imports: import argparse
  import errno
  import logging
  import os
  import signal
  import subprocess
  import sys
  import time
label_desc: Use image node_id 6 for calling a global function with example usage: replace_suffix(base, old_suffix, new_suffix) and returns: base