class_docstr: RPC Client session module
  
  Do not directly create the object, call connect
class_docstr_tok: ["RPC","Client","session","module","Do","not","directly","create","the","object",",","call","connect"]
docstr: Link a module in the remote and download it.
  
  Parameters
  ----------
  path : str
      The relative location to remote temp folder.
  
  Returns
  -------
  blob : bytearray
      The result blob from the file.
  
  Note
  ----
  This function can be helpful when a linker
  is not available on the local client.
  
  Examples
  --------
  .. code-block:: python
  
      mod = build_module_with_cross_compilation()
      # export the module as tar because a local linker is not available
      mod.export_library("lib.tar")
      remote.upload("lib.tar")
      # invoke the linker on the remote to link the module as a library
      # note that the library can only run on the same env as the remote
      with open("lib.so", "wb") as file:
          file.write(remote.download_linked_module("lib.tar"))
docstr_tok: ["Link","a","module","in","the","remote","and","download","it",".","Parameters","--","--","--","--","--","path",":","str","The","relative","location","to","remote","temp","folder",".","Returns","--","--","--","-","blob",":","bytearray","The","result","blob","from","the","file",".","Note","--","--","This","function","can","be","helpful","when","a","linker","is","not","available","on","the","local","client",".","Examples","--","--","--","--","..","code-block",":",":","python","mod","=","build_module_with_cross_compilation","(",")","#","export","the","module","as","tar","because","a","local","linker","is","not","available","mod.export_library","(","``","lib.tar","''",")","remote.upload","(","``","lib.tar","''",")","#","invoke","the","linker","on","the","remote","to","link","the","module","as","a","library","#","note","that","the","library","can","only","run","on","the","same","env","as","the","remote","with","open","(","``","lib.so","''",",","``","wb","''",")","as","file",":","file.write","(","remote.download_linked_module","(","``","lib.tar","''",")",")"]
code: def download_linked_module(self, path):
      """Link a module in the remote and download it.
  
      Parameters
      ----------
      path : str
          The relative location to remote temp folder.
  
      Returns
      -------
      blob : bytearray
          The result blob from the file.
  
      Note
      ----
      This function can be helpful when a linker
      is not available on the local client.
  
      Examples
      --------
      .. code-block:: python
  
          mod = build_module_with_cross_compilation()
          # export the module as tar because a local linker is not available
          mod.export_library("lib.tar")
          remote.upload("lib.tar")
          # invoke the linker on the remote to link the module as a library
          # note that the library can only run on the same env as the remote
          with open("lib.so", "wb") as file:
              file.write(remote.download_linked_module("lib.tar"))
      """
      if "download_linked_module" not in self._remote_funcs:
          self._remote_funcs[
              "download_linked_module"
          ] = self.get_function("tvm.rpc.server.download_linked_module")
      return self._remote_funcs["download_linked_module"](path)
  
imports: import os
  import socket
  import stat
  import struct
  import time
  import tvm._ffi
  from tvm._ffi.base import TVMError
  from tvm.contrib import utils
  from tvm.runtime import ndarray
  from tvm._ffi.runtime_ctypes import Device
  from .None import _ffi_api, base, server
label_desc: Use image node_id 10 for calling the RPCSession obj's underlying member method code with example usage: obj.download_linked_module(path) and returns: self