code: def _ensure_out_stages_lookup(out_stages, dvc_config):
      if out_stages is not None:
          return out_stages
      return _out_stages(dvc_config)
  
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 4 for calling a global function with example usage: _ensure_out_stages_lookup(out_stages, dvc_config) and returns: _out_stages, out_stages