def METHOD_NAME():
    # create a connection
    create_connection()
    # drop collection if the collection exists
    if has_collection(_COLLECTION_NAME):
        drop_collection(_COLLECTION_NAME)
    # create collection
    collection = create_collection(_COLLECTION_NAME, _ID_FIELD_NAME, _VECTOR_FIELD_NAME)
    # show collections
    list_collections()
    # insert 10000 vectors with 128 dimension
    vectors = insert(collection, 10000, _DIM)
    # get the number of entities
    get_entity_num(collection)
    # create index
    create_index(collection, _VECTOR_FIELD_NAME)
    # load data to memory
    load_collection(collection)
    # search
    search(collection, _VECTOR_FIELD_NAME, _ID_FIELD_NAME, vectors[:3])
    # drop collection index
    drop_index(collection)
    # release memory
    release_collection(collection)
    # drop collection
    drop_collection(_COLLECTION_NAME)