def METHOD_NAME():
    nlp = Language()
    def create_kb(vocab):
        kb = InMemoryLookupKB(vocab, entity_vector_length=1)
        kb.add_entity("test", 0.0, zeros((1,), dtype="f"))
        return kb
    METHOD_NAME = nlp.add_pipe("entity_linker")
    METHOD_NAME.set_kb(create_kb)
    # need to add model for two reasons:
    # 1. no model leads to error in serialization,
    # 2. the affected line is the one for model serialization
    nlp.initialize()
    return METHOD_NAME