code: def _format_files(files, root):
      filtered = [
          path
          for path in files
          if os.path.islink(path) or os.path.isfile(path)
      ]
      formatted = [_format_file(path, root) for path in filtered]
      return util.natsorted(formatted, key=lambda x: x["path"])
  
imports: import logging
  import os
  import re
  import guild
  from guild import batch_util
  from guild import click_util
  from guild import config
  from guild import index
  from guild import run
  from guild import run_util
  from guild import util
  from guild import var
  from .None import compare_impl
  from .None import runs_impl
label_desc: Use image node_id 13 for calling a global function with example usage: _format_files(files, root) and returns: util