code: def enable_multi_fs_load_static(load_func: Callable) -> Callable:
      """
      Enable loading file or directory in multiple file systems.
      It supports local, hdfs, s3 file systems.
      Note: this decorator is different from dllib decorator @enable_multi_fs_load_static.
      This decorator can load on each worker while @enable_multi_fs_load can only load on driver.
  
      :param load_func: load file or directory function
      :return: load file or directory function for the specific file system
      """
  
      @functools.wraps(load_func)
      def fs_load(path, *args, **kwargs):
          from bigdl.dllib.utils.file_utils import is_local_path
  
          if is_local_path(path):
              return load_func(path, *args, **kwargs)
          else:
              import uuid
              import tempfile
              from bigdl.dllib.utils.file_utils import append_suffix
  
              file_name = str(uuid.uuid1())
              file_name = append_suffix(
                  file_name, path.strip("/").split("/")[-1]
              )
              with tempfile.TemporaryDirectory() as tmpdir:
                  temp_path = os.path.join(tmpdir, file_name)
                  if is_file(path):
                      get_remote_file_to_local(path, temp_path)
                  else:
                      os.makedirs(temp_path)
                      get_remote_dir_to_local(path, temp_path)
                  return load_func(temp_path, *args, **kwargs)
  
      return fs_load
  
imports: import os
  import subprocess
  import logging
  import shutil
  import functools
  import glob
  from distutils.dir_util import copy_tree
  from bigdl.dllib.utils.log4Error import invalidOperationError
  from bigdl.dllib.utils import file_utils
  from typing import TYPE_CHECKING, List, Callable, Union, Optional
label_desc: Use image node_id 17 for calling a global function with example usage: enable_multi_fs_load_static(load_func) and returns: fs_load, load_func, load_func