code: def append_suffix(prefix, path):
      # append suffix
      splits = path.split(".")
      if len(splits) > 0:
          file_name = prefix + "." + splits[-1]
      else:
          file_name = prefix
  
      return file_name
  
imports: from bigdl.util.common import Sample, JTensor, JavaCreator, _get_gateway, _py2java, _java2py
  import numpy
  import os
  import tempfile
  import uuid
  import functools
  from urllib.parse import urlparse
label_desc: Use image node_id 5 for calling a global function with example usage: append_suffix(prefix, path) and returns: file_name