class_docstr: See default_module_loader(). A pickleable emulation of the original function closure.
class_docstr_tok: ["See","default_module_loader","(",")",".","A","pickleable","emulation","of","the","original","function","closure","."]
code: def __call__(self, remote_kwargs, build_result):
      remote = request_remote(**remote_kwargs)
      if self.pre_load_function is not None:
          self.pre_load_function(remote, build_result)
  
      remote.upload(build_result.filename)
      try:
          yield remote, remote.load_module(
              os.path.split(build_result.filename)[1]
          )
  
      finally:
          # clean up remote files
          remote.remove(build_result.filename)
          remote.remove(
              os.path.splitext(build_result.filename)[0] + ".so"
          )
          remote.remove("")
  
imports: import contextlib
  import logging
  import os
  import shutil
  import tempfile
  import threading
  import time
  import traceback
  import typing
  import warnings
  from collections import namedtuple
  from random import getrandbits
  import tvm._ffi
  import tvm.ir.transform
  from tvm import nd
  from tvm import rpc
  from tvm.autotvm.env import AutotvmGlobalScope, reset_global_scope
  from tvm.contrib import ndk, stackvm, tar
  from tvm.contrib.popen_pool import PopenPoolExecutor
  from tvm.driver import build
  from tvm.error import TVMError
  from tvm.target import Target
  from ..env import AutotvmGlobalScope
  from ..task.space import InstantiationError
  from ..utils import get_const_tuple
  from .measure import Builder, MeasureErrorNo, MeasureResult, Runner
label_desc: Use image node_id 2 for calling the DefaultModuleLoader obj's underlying member method code with example usage: obj.__call__(remote_kwargs, build_result) without return types