code: def generate_opmap(analysis: Analysis, out: CWriter) -> None:
      specialized = get_specialized(analysis)
      out.emit("opmap = {\n")
      for inst, op in analysis.opmap.items():
          if inst not in specialized:
              out.emit(f"'{inst}': {analysis.opmap[inst]},\n")
      out.emit("}\n\n")
  
file_path: cpython/Tools/cases_generator/py_metadata_generator.py
imports: import argparse
  from analyzer import Analysis, analyze_files
  from generators_common import DEFAULT_INPUT, ROOT, root_relative_path, write_header
  from cwriter import CWriter
  from typing import TextIO
label_desc: Use image node_id 4 for calling a global function with example usage: generate_opmap(analysis, out) without return types