code: def main() -> None:
      base_dir = os.path.dirname(
          os.path.dirname(
              os.path.dirname(
                  os.path.dirname(os.path.realpath(__file__))
              )
          )
      )
      docs_dir = os.path.join(base_dir, "docs")
      schemas = defs.get_all_schemas()
  
      has_ml = is_ml(schemas)
      fname = os.path.join(docs_dir, "TestCoverage.md")
      with open(fname, "w+", newline="", encoding="utf-8") as f:  # type: ignore
          gen_spdx(f)
          gen_outlines(f, False)
          gen_node_test_coverage(schemas, f, False)
          gen_model_test_coverage(schemas, f, False)
          gen_overall_test_coverage(schemas, f, False)
  
      if has_ml:
          fname = os.path.join(docs_dir, "TestCoverage-ml.md")
          with open(fname, "w+", newline="", encoding="utf-8") as f:  # type: ignore
              gen_spdx(f)
              gen_outlines(f, True)
              gen_node_test_coverage(schemas, f, True)
              gen_model_test_coverage(schemas, f, True)
              gen_overall_test_coverage(schemas, f, True)
  
file_path: onnx/onnx/backend/test/stat_coverage.py
imports: import os
  from typing import IO, Any, Dict, List, Sequence
  from onnx import AttributeProto, defs, load
  from onnx.backend.test.case import collect_snippets
  from onnx.backend.test.loader import load_model_tests
  from onnx.backend.test.runner import Runner
label_desc: Use image node_id 7 for calling a global function with example usage: main() without return types