def METHOD_NAME(frontend_session):
    # Create new Test
    create_test_json = {
        "query": """mutation createTest($input: CreateTestInput!) {\n
            createTest(input: $input)
        }""",
        "variables": {
            "input": {
                "id": test_id,
                "name": test_name,
                "category": test_category,
                "description": test_description,
                "definition": {"json": "{}"},
            }
        },
    }
    response = frontend_session.post(
        f"{get_frontend_url()}/api/v2/graphql", json=create_test_json
    )
    response.raise_for_status()
    res_data = response.json()
    assert res_data
    assert res_data["data"]
    assert res_data["data"]["createTest"] is not None
    assert "errors" not in res_data
    return res_data["data"]["createTest"]