code: def test_annotation_from_graph(self):
      nn = ng.NNModule()
      node = nn.dataFlow.createNode(ng.NeuralNetOperator("TestOp"))
      annot = node.getAnnotation()
      annot.setDeviceType(7)
      node.setAnnotation(annot)
      new_annot = node.getAnnotation()
      assert new_annot.getDeviceType() == 7
  
imports: from caffe2.python import core, test_util
  from caffe2.proto import caffe2_pb2
  import caffe2.python.nomnigraph
  from hypothesis import given
  import hypothesis.strategies
  import random
label_desc: Use image node_id 26 for calling the TestBindings obj's underlying member method code with example usage: obj.test_annotation_from_graph() without return types