class_docstr: Check that the annotations on each function in the graph match
  what is expected.
class_docstr_tok: ["Check","that","the","annotations","on","each","function","in","the","graph","match","what","is","expected","."]
code: def __init__(self, expected_annotations, expected_io_annotation):
      self.expected_annotations = expected_annotations
      self.expected_io_annotation = expected_io_annotation
      super().__init__()
  
imports: import pytest
  import tvm
  from tvm import relay
  from tvm.relay.expr_functor import ExprVisitor
label_desc: Use image node_id 1 to create a new CheckUsedMemoryAnnotation object from inherited base classes: ExprVisitor with example: obj = CheckUsedMemoryAnnotation(expected_annotations, expected_io_annotation)