code: def _write_run_attrs(state):
      state.run.write_attr("dvc", {"stage": state.target_stage})
  
imports: import argparse
  import logging
  import os
  import subprocess
  import yaml
  from guild import op_util
  from guild import run
  from guild import run_manifest
  from guild import summary
  from guild import util
  from .None import dvc_util
label_desc: Use image node_id 10 for calling a global function with example usage: _write_run_attrs(state) without return types