code: def get_file_paths(file_path):
      file_url_splits = file_path.split("://")
      prefix = file_url_splits[0]
  
      file_paths = []
      if isinstance(file_path, list):
          [
              file_paths.extend(extract_one_path(path, os.environ))
              for path in file_path
          ]
      else:
          file_paths = extract_one_path(file_path, os.environ)
  
      if not file_paths:
          invalidInputError(
              False,
              "The file path is invalid or empty, please check your data",
          )
      return file_paths
  
file_path: BigDL/python/orca/src/bigdl/orca/data/image/preprocessing.py
imports: from bigdl.orca import OrcaContext
  from typing import TYPE_CHECKING, Any, Tuple
  from bigdl.orca.data.file import *
  from bigdl.orca.data.utils import *
  from bigdl.orca.data import SparkXShards
  from pyspark.sql.functions import col, explode, collect_list
  from bigdl.dllib.utils.log4Error import invalidInputError
  from bigdl.dllib.utils.common import get_node_and_core_number
  import os.path
label_desc: Use image node_id 1 for calling a global function with example usage: get_file_paths(file_path) and returns: file_paths