code: def test_meta_schedule_error_handle_build_func():
      """Test the error handing during building"""
  
      def initializer():
          @register_func("meta_schedule.builder.test_build")
          def test_build(
              mod: Module, target: Target, _
          ) -> None:  # pylint: disable=unused-variable
              raise ValueError(
                  "Builder intended Test Error (build func)."
              )
  
      builder = LocalBuilder(
          f_build="meta_schedule.builder.test_build",
          initializer=initializer,
      )
      builder_inputs = [BuilderInput(MatmulModule, Target("llvm"))]
      builder_results = builder.build(builder_inputs)
      assert len(builder_results) == len(builder_inputs)
      for result in builder_results:
          artifact_path = result.artifact_path
          error_msg = result.error_msg
          assert artifact_path is None
          assert error_msg.startswith(
              "LocalBuilder: An exception occurred"
          )
  
imports: import os
  import sys
  import time
  from typing import List
  import pytest
  import tvm.testing
  from tvm import script
  from tvm._ffi import register_func
  from tvm.meta_schedule.builder import BuilderInput, BuilderResult, LocalBuilder, PyBuilder
  from tvm.runtime import Module
  from tvm.script import tir
  from tvm.target import Target
label_desc: Use image node_id 5 for calling a global function with example usage: test_meta_schedule_error_handle_build_func() without return types