def METHOD_NAME(self, sbom_file: str) -> list[list[str]]:
    """parses SPDX YAML BOM file extracting package name and version"""
    data = yaml.safe_load(open(sbom_file))
    modules: list[list[str]] = []
    for d in data["packages"]:
        package = d["name"]
        try:
            version = d["versionInfo"]
            modules.append([package, version])
        except KeyError as e:
            LOGGER.debug(e, exc_info=True)
    return modules