class_docstr: Helper class for compiling pytorch module to tvm module
code: def _build_tvm(self, debug_runtime=False):
      # compile kernels with history best records
      with autotvm.apply_history_best(self.log_file):
          with tvm.transform.PassContext(opt_level=3):
              (
                  self.tvm_graph,
                  self.tvm_lib,
                  self.tvm_params,
              ) = relay.build(
                  self.mod, target=self.target, params=self.params
              )
  
      if not debug_runtime:
          self.tvm_module = graph_executor.create(
              self.tvm_graph, self.tvm_lib, device=self.dev
          )
      else:
          self.tvm_module = debug_executor.create(
              self.tvm_graph, self.tvm_lib, device=self.dev
          )
      self.tvm_module.set_input(**self.tvm_params)
      return self.tvm_module
  
imports: import os
  import warnings
  import tvm
  import tvm.testing
  from tvm import relay, autotvm
  from tvm.runtime import load_module
  from tvm.autotvm.tuner import XGBTuner, GATuner, RandomTuner, GridSearchTuner
  from tvm.contrib import graph_executor
  from tvm.contrib.debugger import debug_executor
  from .None import GraphModule
label_desc: Use image node_id 5 for calling the PyTorchTVMModule obj's underlying member method code with example usage: obj._build_tvm(debug_runtime) and returns: self