class_docstr: A helper class tracking schedule objects, e.g. stage, IterVar,
  relationship, and tensor, to their DOM path.
class_docstr_tok: ["A","helper","class","tracking","schedule","objects",",","e.g",".","stage",",","IterVar",",","relationship",",","and","tensor",",","to","their","DOM","path","."]
code: def __init__(self, sch):
      self.dict = {}
      for stage_idx, stage in enumerate(sch.stages):
          self.dict[stage] = [stage_idx]
          for itervar_idx, itervar in enumerate(stage.all_iter_vars):
              self.dict[itervar] = [stage_idx, itervar_idx]
              # the itervars of leaf should also be mapped to the original one
              for leaf_iv in stage.leaf_iter_vars:
                  if itervar_equal(leaf_iv, itervar):
                      self.dict[leaf_iv] = [stage_idx, itervar_idx]
          for rel_idx, rel in enumerate(stage.relations):
              self.dict[rel] = [stage_idx, rel_idx]
          for tensor_idx in range(stage.op.num_outputs):
              self.dict[frozenset({stage.op.name, tensor_idx})] = [
                  stage_idx,
                  tensor_idx,
              ]
  
imports: import html
  import json
  import warnings
  from graphviz import Digraph
  from graphviz import Source
  import tvm
label_desc: Use image node_id 1 to create a new ObjectManager object  with example: obj = ObjectManager(sch)