def METHOD_NAME(self, safe_urlread, safe_urlopen, mock_get_all_package_versions):
    self.organization
    self.project
    self.team
    mock_get_all_package_versions.return_value = {"foo": "1.0"}
    safe_urlread.return_value = json.dumps({"notices": [], "version": {"stable": "1.0.0"}})
    assert options.set("system.admin-email", "foo@example.com")
    assert options.set("beacon.anonymous", True)
    send_beacon()
    install_id = options.get("sentry:install-id")
    assert install_id and len(install_id) == 40
    safe_urlopen.assert_called_once_with(
        BEACON_URL,
        json={
            "install_id": install_id,
            "version": sentry.get_version(),
            "docker": sentry.is_docker(),
            "python_version": platform.python_version(),
            "data": {
                "organizations": 1,
                "users": 1,
                "projects": 1,
                "teams": 1,
                "events.24h": 0,
            },
            "anonymous": True,
            "packages": mock_get_all_package_versions.return_value,
        },
        timeout=5,
    )
    safe_urlread.assert_called_once_with(safe_urlopen.return_value)
    assert options.get("sentry:latest_version") == "1.0.0"