def METHOD_NAME(client):
    """Tests creating an index with a primary key."""
    response = client.create_index(
        uid=common.INDEX_UID3, options={"uid": "wrong", "primaryKey": "book_id"}
    )
    client.wait_for_task(response.task_uid)
    index = client.get_index(uid=common.INDEX_UID3)
    assert isinstance(index, Index)
    assert index.uid == common.INDEX_UID3
    assert index.primary_key == "book_id"
    assert index.get_primary_key() == "book_id"