class_docstr: Functor for translating Relay programs into Python ASTs.
class_docstr_tok: ["Functor","for","translating","Relay","programs","into","Python","ASTs","."]
docstr: Converts all the global functions defined in the module and returns
  them as a list of definitions
docstr_tok: ["Converts","all","the","global","functions","defined","in","the","module","and","returns","them","as","a","list","of","definitions"]
code: def convert_module(self):
      """Converts all the global functions defined in the module and returns
      them as a list of definitions"""
      defs = []
      for var, func in self.mod.functions.items():
          # optimize the definition so any operators used are lowered
          opt_func = self.optimize(func)
          try:
              converted_func, _ = self.convert_func_node(opt_func, var)
              defs.append(converted_func)
          except TypeError:
              # TODO(wweic): fix conversion for Any
              pass
      return defs
  
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 14 for calling the PythonConverter obj's underlying member method code with example usage: obj.convert_module() and returns: defs