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)
    # alter ttl properties of collection level
    set_properties(collection)
    # show collections
    list_collections()
    # insert 10000 vectors with 128 dimension
    vectors = insert(collection, 10000, _DIM)
    collection.flush()
    # 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])
    # release memory
    release_collection(collection)
    # drop collection index
    drop_index(collection)
    # drop collection
    drop_collection(_COLLECTION_NAME)