class_docstr: Functor for translating Relay programs into Python ASTs.
class_docstr_tok: ["Functor","for","translating","Relay","programs","into","Python","ASTs","."]
code: def __init__(self, mod, target) -> None:
      super().__init__()
      self.mod = mod
      self.tgt = (
          target
          if isinstance(target, tvm.target.Target)
          else tvm.target.Target(target)
      )
      self.tec = te_compiler.get()
      self.fun_no = 0
      self.var_no = 0
      self.var_map = {}
  
imports: import sys
  import ast
  from ast import alias, Assign, Load, Name, NameConstant, Num, Return, Store, Str
  import re
  import tvm
  from tvm import relay
  from tvm.relay.adt import Pattern
  from tvm.relay.backend import te_compiler
  from tvm.relay.expr import Expr, GlobalVar, Var
  from tvm.relay.function import Function
  from tvm.relay.expr_functor import ExprFunctor
label_desc: Use image node_id 1 to create a new PythonConverter object from inherited base classes: ExprFunctor with example: obj = PythonConverter(mod, target)