code: def test_dag_measure_local_builder_runner():
      if not tvm.testing.device_enabled("llvm"):
          return
  
      A = te.placeholder((512, 512), name="A")
      B = te.placeholder((512, 512), name="B")
      k = te.reduce_axis((0, 512), name="k")
      C = te.compute(
          (512, 512),
          lambda i, j: te.sum(A[i][k] * B[k][j], axis=[k]),
          name="C",
      )
      D = topi.nn.relu(C)
      E = topi.nn.relu(D)
  
      tensors = [A, B, E]
      dag = auto_scheduler.ComputeDAG(tensors)
      key = workload_registry.register_workload_tensors(
          dag.workload_key(), tensors
      )
      transfer_data = (
          workload_registry.serialize_workload_registry_entry(key)
      )
      f_data = pickle.dumps(transfer_data)
      f_new = pickle.loads(f_data)
      del workload_registry.WORKLOAD_FUNC_REGISTRY[key]
      workload_registry.deserialize_workload_registry_entry(f_new)
  
      target = tvm.target.Target("llvm")
      task = auto_scheduler.SearchTask(
          compute_dag=dag, workload_key=key, target=target
      )
  
      for enable_cpu_cache_flush in [True, False]:
          minp = auto_scheduler.MeasureInput(
              task, task.compute_dag.init_state
          )
          local_builder = auto_scheduler.LocalBuilder()
          local_runner = auto_scheduler.LocalRunner(
              timeout=60, enable_cpu_cache_flush=enable_cpu_cache_flush
          )
  
          bress = local_builder.build([minp])
          assert bress[0].error_no == 0
          mress = local_runner.run([minp], bress)
          assert mress[0].error_no == 0
  
imports: import json
  import multiprocessing
  import numpy
  import tvm
  from tvm import topi
  from tvm import te, auto_scheduler
  import tempfile
  import tvm.testing
  import pickle
  from tvm.testing.auto_scheduler import matmul_auto_scheduler_test
  from tvm.auto_scheduler import workload_registry
label_desc: Use image node_id 9 for calling a global function with example usage: test_dag_measure_local_builder_runner() without return types