code: def main(argv):
      with open(FLAGS.config, "r") as f:
          config = json.load(f)
  
      specs = _create_specs(cfg=config)
  
      print(f"generating the following images in {FLAGS.output}:")
      for s in specs:
          print(f"{s.tag}")
  
      steps = []
      for s in specs:
          steps.append(_create_build_step(spec=s).to_dict())
          steps.append(_create_push_step(tag=s.tag).to_dict())
  
      with open(FLAGS.output, "w") as f:
          json.dump(
              {"steps": steps, "timeout": f"{FLAGS.timeout_sec}s"},
              f,
              indent=2,
          )
  
imports: from absl import flags, app, logging
  from copy import copy
  from typing import Dict, List, Any, NamedTuple, Optional, Set
  from enum import Enum
  import json
  import pprint
label_desc: Use image node_id 9 for calling a global function with example usage: main(argv) without return types