def METHOD_NAME() -> None:
  parser = argparse.ArgumentParser(
      description="Helper for creating SBOMs", fromfile_prefix_chars="@"
  )
  parser.add_argument(
      "--out", required=True, help="The output file, mandatory."
  )
  parser.add_argument(
      "--packages_used",
      required=True,
      help="JSON list of transitive package data for a target",
  )
  parser.add_argument(
      "--maven_install",
      required=False,
      default="",
      help="Maven lock file",
  )
  opts = parser.parse_args()
  with open(opts.packages_used, "rt", encoding="utf-8") as inp:
    package_info = json.loads(inp.read())
  maven_packages = None
  if opts.maven_install:
    with open(opts.maven_install, "rt", encoding="utf-8") as inp:
      maven_install = json.loads(inp.read())
      maven_packages = maven_install_to_packages(maven_install)
      # Useful for debugging
      # print(json.dumps(maven_packages, indent=2))
  sbom = create_sbom(package_info, maven_packages)
  with open(opts.out, "w", encoding="utf-8") as out:
    out.write(json.dumps(sbom, indent=2))