code: def enable_multi_fs_save(save_func):
      @functools.wraps(save_func)
      def save_mult_fs(obj, path, *args, **kwargs):
          if is_local_path(path):
              return save_func(obj, path, *args, **kwargs)
          else:
              file_name = str(uuid.uuid1())
              file_name = append_suffix(file_name, path)
              temp_path = os.path.join(tempfile.gettempdir(), file_name)
  
              try:
                  result = save_func(obj, temp_path, *args, **kwargs)
                  if "overwrite" in kwargs:
                      put_local_file_to_remote(
                          temp_path,
                          path,
                          over_write=kwargs["overwrite"],
                      )
                  else:
                      put_local_file_to_remote(temp_path, path)
              finally:
                  os.remove(temp_path)
              return result
  
      return save_mult_fs
  
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 6 for calling a global function with example usage: enable_multi_fs_save(save_func) and returns: save_mult_fs, save_func, result