code: def extract_one_path(file_path, env):
      file_url_splits = file_path.split("://")
      prefix = file_url_splits[0]
      if prefix == "s3":
          file_paths = list_s3_file(file_url_splits[1], env)
      elif prefix == "hdfs":
          import pyarrow as pa
  
          fs = pa.hdfs.connect()
          if fs.isfile(file_path):
              file_paths = [file_path]
          else:
              file_paths = get_file_list(file_path)
      else:  # Local file path; could be a relative path.
          from os.path import isfile, abspath, join
  
          if isfile(file_path):
              file_paths = [abspath(file_path)]
          else:
              # An error would be already raised here if the path is invalid.
              file_paths = [
                  abspath(join(file_path, file))
                  for file in os.listdir(file_path)
              ]
      return file_paths
  
imports: import os
  import numpy
  from zoo.common import get_file_list
  from zoo.util.utils import convert_row_to_numpy
label_desc: Use image node_id 2 for calling a global function with example usage: extract_one_path(file_path, env) and returns: file_paths