def METHOD_NAME(builder: spack.builder.Builder):
    """Execute the build-time tests prescribed by builder.
    Args:
        builder: builder prescribing the test callbacks. The name of the callbacks is
            stored as a list of strings in the ``build_time_test_callbacks`` attribute.
    """
    if not builder.pkg.run_tests or not builder.build_time_test_callbacks:
        return
    builder.pkg.tester.phase_tests(builder, "build", builder.build_time_test_callbacks)