def METHOD_NAME():
    """
    Tests pythongenerator with ifabsent_functions.
    See: https://github.com/linkml/linkml/issues/1333
    """
    m = compile_python(PythonGenerator(model_txt).serialize())
    sample = m.HighClass()
    assert sample.bool_true_slot is True
    assert sample.bool_false_slot is False
    # TODO: class_curie_slot fails
    # assert sample.class_curie_slot, m.HighClass.class_class_curie)
    assert sample.class_curie_slot is None
    # TODO: class_uri_slot fails
    # assert sample.class_uri_slot, m.HighClass.class_class_uri)
    assert sample.class_uri_slot is None
    # TODO: default_ns fails")
    # assert sample.default_ns_slot, 'ex')
    assert sample.default_ns_slot is None
    # TODO: default_range fails
    # assert sample.default_range_slot, 'string')
    assert sample.default_range_slot is None
    # TODO: int(0) fails
    assert sample.int_0_slot == 0
    assert sample.int_42_slot == 42
    assert sample.neg_int_slot == -117243
    # TODO: slot_curie fails
    # assert sample.slot_curie_slot, m.slots.slot_curie_slot.curie)
    assert sample.slot_curie_slot is None
    # TODO: slot_uri fails
    # assert sample.slot_uri_slot, m.slots.slot_uri_slot.uri)
    assert sample.slot_uri_slot is None
    assert sample.slot_curie_slot is None
    assert sample.string_slot == "s1"
    assert sample.mt_string_slot == ""