code: def check_visit(typ):
      try:
          ef = TypeFunctor()
          ef.visit(typ)
          assert False
      except NotImplementedError:
          pass
  
      ev = TypeVisitor()
      ev.visit(typ)
  
      tvm.ir.assert_structural_equal(
          TypeMutator().visit(typ), typ, map_free_vars=True
      )
  
file_path: tvm/tests/python/relay/test_type_functor.py
imports: import tvm
  from tvm import te
  from tvm import relay
  from tvm.relay import TypeFunctor, TypeMutator, TypeVisitor
  from tvm.relay.ty import TypeVar, IncompleteType, TensorType, FuncType, TupleType, TypeRelation, RefType, GlobalTypeVar, TypeCall
  from tvm.relay.adt import TypeData
label_desc: Use image node_id 1 for calling a global function with example usage: check_visit(typ) without return types