code: def runs(
      root=None,
      sort=None,
      filter=None,
      force_root=False,
      base_runs=None,
  ):
      filter = filter or (lambda _: True)
      all_runs = (
          _all_runs_f(root, force_root)
          if base_runs is None  #
          else lambda: base_runs
      )
      runs = [run for run in all_runs() if filter(run)]
      if sort:
          runs = sorted(runs, key=_run_sort_key(sort))
      return runs
  
imports: import errno
  import functools
  import logging
  import os
  import shutil
  import tempfile
  from guild import config
  from guild import run
  from guild import util
label_desc: Use image node_id 8 for calling a global function with example usage: runs(root, sort, filter, force_root, base_runs) and returns: runs