def METHOD_NAME(client, index_uid: Optional[str] = None):
    index_uid = index_uid if index_uid else common.INDEX_UID
    def index_maker(index_uid=index_uid):
        task = client.create_index(uid=index_uid)
        client.wait_for_task(task.task_uid)
        return client.get_index(uid=index_uid)
    return index_maker