code: def iter_stage_deps_by_parent(stage, dvc_config):
      deps = {}
      for dep, parent_stage in iter_stage_deps(stage, dvc_config):
          deps.setdefault(parent_stage, []).append(dep)
      for parent_stage in sorted(
          deps, key=lambda x: x if x is not None else ""
      ):
          yield parent_stage, deps[parent_stage]
  
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 10 for calling a global function with example usage: iter_stage_deps_by_parent(stage, dvc_config) without return types