code: def run_filter(name, *args):
      if name.startswith("!"):
          name = name[1:]
          maybe_negate = lambda f: lambda r: not f(r)
      else:
          maybe_negate = lambda f: f
      if name == "true":
          filter = lambda _: True
      elif name == "attr":
          name, expected = args
          filter = lambda r: _run_attr(r, name) == expected
      elif name == "all":
          (filters,) = args
          filter = lambda r: all((f(r) for f in filters))
      elif name == "any":
          (filters,) = args
          filter = lambda r: any((f(r) for f in filters))
      else:
          raise ValueError(name)
      return maybe_negate(filter)
  
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 16 for calling a global function with example usage: run_filter(name) and returns: maybe_negate