code: def test_meta_schedule_error_handle_test_builder():
      """Test the error handing during building"""
  
      class TestBuilder(PyBuilder):
          def build(  # pylint: disable=no-self-use
              self,
              build_inputs: List[BuilderInput],
          ) -> List[BuilderResult]:
              return [
                  BuilderResult(None, "error") for w in build_inputs
              ]
  
      builder = TestBuilder()
      builder_inputs = [
          BuilderInput(MatmulModule, Target("llvm")),
          BuilderInput(MatmulReluModule, Target("llvm")),
          BuilderInput(BatchMatmulModule, 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 == "error"
  
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 4 for calling a global function with example usage: test_meta_schedule_error_handle_test_builder() and returns: unknown