def METHOD_NAME():
    type_to_loader_dict = {
        "example1": example_loader_1,
        "example2": example_loader_2,
    }
    # Test with valid name
    result = build_template_from_function("ExampleClass1", type_to_loader_dict)
    assert result is not None
    assert "template" in result
    assert "description" in result
    assert "base_classes" in result
    # Test with add_function=True
    result_with_function = build_template_from_function(
        "ExampleClass1", type_to_loader_dict, add_function=True
    )
    assert result_with_function is not None
    assert "function" in result_with_function["base_classes"]
    # Test with invalid name
    with pytest.raises(ValueError, match=r".* not found"):
        build_template_from_function("NonExistent", type_to_loader_dict)