def METHOD_NAME(
    staff_api_client,
    color_attribute,
    permission_manage_products,
    count_queries,
):
    query = """
        query($id: ID!) {
            attribute(id: $id) {
                id
                slug
                name
                inputType
                type
                choices(first: 10) {
                    edges {
                        node {
                            slug
                            inputType
                        }
                    }
                }
                valueRequired
                visibleInStorefront
                filterableInStorefront
                filterableInDashboard
                availableInGrid
                storefrontSearchPosition
            }
        }
        """
    staff_api_client.user.user_permissions.add(permission_manage_products)
    attribute_gql_id = graphene.Node.to_global_id("Attribute", color_attribute.id)
    response = staff_api_client.post_graphql(query, {"id": attribute_gql_id})
    content = get_graphql_content(response)
    data = content["data"]["attribute"]
    assert data