code: def parse_aquery_shell_calls(aquery_results):
      """Extracts and yields the command lines representing the genrule() rules
      from Bazel aquery results.
      """
      for action in aquery_results["actions"]:
          if action["mnemonic"] != "Genrule":
              continue
          yield action["arguments"]
  
imports: import ast
  import errno
  import json
  import os
  import re
  import subprocess
  import stat
  import sys
  from collections import defaultdict, OrderedDict
label_desc: Use image node_id 4 for calling a global function with example usage: parse_aquery_shell_calls(aquery_results) without return types