code: def _sync_state_for_staged(state, staged, **_kw):
      staged_run_ids = [run.id for run in (staged or [])]
      state._logged_missing_resoures.intersection_update(staged_run_ids)
      if state._logged_missing_resoures:
          log.debug(
              "missing resource runs: %s",
              state._logged_missing_resoures,
          )
  
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 33 for calling a global function with example usage: _sync_state_for_staged(state, staged) without return types