code: def list_files(dirpath):
      dirs = [
          {
              "name": name,
              "type": "directory",
              "absolute_path": fos.join(dirpath, name),
          }
          for name in fos.list_subdirs(dirpath)
      ]
      files = [
          {
              "name": d["name"],
              "date_modified": d["last_modified"].isoformat(),
              "type": "file",
              "size": d["size"],
              "absolute_path": fos.join(dirpath, d["name"]),
          }
          for d in fos.list_files(dirpath, return_metadata=True)
      ]
      return dirs + files
  
imports: import os
  import fiftyone
  import fiftyone.core.storage
  import fiftyone.operators
  import fiftyone.operators.types
label_desc: Use image node_id 3 for calling a global function with example usage: list_files(dirpath) and returns: unknown