code: def _check_run_resources(run_resources, run, state):
      cluster_resources = state.resources or {}
      missing_resources = [
          name
          for name in run_resources
          if name not in cluster_resources
      ]
      if missing_resources:
          _handle_missing_resources(missing_resources, run, state)
          return False
      return True
  
imports: import argparse
  import logging
  import time
  from guild import _api
  from guild import util
  from .None import gen_queue
label_desc: Use image node_id 29 for calling a global function with example usage: _check_run_resources(run_resources, run, state) and returns: True, False