code: def _stage_config(stage, dvc_config):
      try:
          return _stages_config(dvc_config)[stage]
      except KeyError as e:
          raise ValueError(f"no such stage: {stage}") from e
  
imports: import json
  import logging
  import os
  import subprocess
  import yaml
  from guild import util
  from guild import var
label_desc: Use image node_id 7 for calling a global function with example usage: _stage_config(stage, dvc_config) and returns: _stages_config