def METHOD_NAME():
    mmF = metamodel_for_language('flow-dsl')
    # print("-----------------------------------1---")
    # print(metamodel_for_language('flow-dsl').
    #      _tx_model_repository.all_models.filename_to_model.keys())
    cached_model_count = len(
        metamodel_for_language('flow-dsl')._tx_model_repository.all_models)
    with pytest.raises(TextXError,
                       match=r'.*types must be lowercase.*'):
        mmF.model_from_file(os.path.join(current_dir,
                                         'models',
                                         'MODEL_WITH_IMPORT_ERROR.eflow'))
    # print("-----------------------------------2---")
    # print(metamodel_for_language('flow-dsl').
    #      _tx_model_repository.all_models.filename_to_model.keys())
    # error while reading, no file cached (cached_model_count unchanged)!
    assert cached_model_count == len(
        metamodel_for_language('flow-dsl')._tx_model_repository.all_models)
    with pytest.raises(TextXError,
                       match=r'.*Unknown object "A" of class "Algo".*'):
        print("loading MODEL_WITH_TYPE_ERROR")
        mmF.model_from_file(os.path.join(current_dir,
                                         'models',
                                         'MODEL_WITH_TYPE_ERROR.eflow'))
    # print("-----------------------------------3---")
    # print(metamodel_for_language('flow-dsl').
    #      _tx_model_repository.all_models.filename_to_model.keys())
    # error while reading, no file cached! (cached_model_count unchanged)!
    assert cached_model_count == len(
        metamodel_for_language('flow-dsl')._tx_model_repository.all_models)
    with pytest.raises(TextXError,
                       match=r'.*types must be lowercase.*'):
        mmF.model_from_file(os.path.join(current_dir,
                                         'models',
                                         'MODEL_WITH_IMPORT_ERROR.eflow'))
    # error while reading, no file cached! (cached_model_count unchanged)!
    assert cached_model_count == len(
        metamodel_for_language('flow-dsl')._tx_model_repository.all_models)