code: def replace_suffix(path, newsuf):
      base, _ = os.path.splitext(path)
      return base + newsuf
  
imports: from __future__ import absolute_import
  import os
  import sys
  import re
  import io
  import codecs
  import shutil
  import tempfile
  from contextlib import contextmanager
label_desc: Use image node_id 4 for calling a global function with example usage: replace_suffix(path, newsuf) and returns: unknown