code: def test_add_annotation_no_grid(self):
      # Paper annotation
      fig = go.Figure()
      fig.add_annotation(text="A", yref="paper")
      annot = fig.layout.annotations[-1]
      self.assertEqual(annot.text, "A")
      self.assertEqual(annot.xref, None)
      self.assertEqual(annot.yref, "paper")
  
      # Not valid to add annotation by row/col
      with self.assertRaisesRegex(Exception, "make_subplots"):
          fig.add_annotation(text="B", row=1, col=1)
  
imports: import types
  from unittest import TestCase
  import plotly.graph_objs
  from plotly.subplots import make_subplots
  import pytest
label_desc: Use image node_id 4 for calling the TestSelectForEachUpdateAnnotations obj's underlying member method code with example usage: obj.test_add_annotation_no_grid() without return types