def METHOD_NAME():
    """Check for packages used in code but not in requirements.txt."""
    mod_imports = analyze_imports(
        package_root=PKG_ROOT, package_name=PKG_NAME, req_file=REQS_FILE
    )
    import_errs = {v for s in mod_imports.values() for v in s.unknown}
    print("re module path:", re.__file__)
    print("Import errors:\n", import_errs)
    stdlib_paths = {
        p
        for p in sys.path
        if p.lower().startswith(sys.prefix.lower()) and "site-packages" not in p
    }
    print("sys.path", sys.path)
    print("sys.prefix", sys.prefix)
    print("Stdlib paths:\b", stdlib_paths)
    missing_req_mod = {
        f"{req}:{mod}" for mod, reqs in mod_imports.items() for req in reqs.missing_reqs
    }
    missing_reqs = {
        req.strip() for reqs in mod_imports.values() for req in reqs.missing_reqs
    }
    missing_reqs = missing_reqs - EXTRAS_EXCEPTIONS
    if missing_reqs:
        print(
            "Missing packages:\n",
            "\n".join(
                req for req in missing_req_mod if req.split(":")[0] in missing_reqs
            ),
        )
    check.is_false(missing_reqs)