code: def test_meta_schedule_error_handle_time_out():
      """Test the error handing time out during building"""
  
      def initializer():
          @register_func("meta_schedule.builder.test_time_out")
          def timeout_build(
              mod, target, _
          ):  # pylint: disable=unused-argument, unused-variable
              time.sleep(2)
  
      builder = LocalBuilder(
          timeout_sec=1,
          f_build="meta_schedule.builder.test_time_out",
          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: Timeout")
  
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 7 for calling a global function with example usage: test_meta_schedule_error_handle_time_out() without return types