code: def __init__(self, target_stage, project_dir):
      _assert_dvc_yaml(project_dir)
      self.target_stage = target_stage
      self.project_dir = project_dir
      self.run_dir = _required_run_dir()
      self.run = runlib.for_dir(self.run_dir)
      self.ran_stages = []
      self.dvc_config = _load_dvc_yaml(project_dir)
      self.parent_run = op_util.current_run()
      self.manifest_entries = []
      self.source_uri = f"dvcstage:{self.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 1 to create a new State object  with example: obj = State(target_stage, project_dir)