def METHOD_NAME(request):
    if not is_opt_true(request, GCS_OPT):
        pytest.skip(f"{GCS_OPT} flag not set")
        return
    gcreds = GCloudCredentials()
    assert gcreds.credentials
    token_path = os.environ["GOOGLE_APPLICATION_CREDENTIALS"]
    gcreds = GCloudCredentials(token=token_path)
    assert gcreds.credentials
    with open(token_path, "rb") as f:
        token = json.load(f)
    gcreds = GCloudCredentials(token=token)
    assert gcreds.credentials
    gcreds = GCloudCredentials(token="google_default")
    assert gcreds.credentials
    gcreds = GCloudCredentials(token="anon")
    assert not gcreds.credentials
    with pytest.raises(GCSDefaultCredsNotFoundError) as e:
        gcreds = GCloudCredentials(token="browser")