code: def test_unequal_z_text_size(self):
      # check: PlotlyError if z and text are not the same dimensions
  
      kwargs = {
          "z": [[1, 2], [1, 2]],
          "annotation_text": [[1, 2, 3], [1]],
      }
      self.assertRaises(
          PlotlyError, ff.create_annotated_heatmap, **kwargs
      )
  
      kwargs = {"z": [[1], [1]], "annotation_text": [[1], [1], [1]]}
      self.assertRaises(
          PlotlyError, ff.create_annotated_heatmap, **kwargs
      )
  
imports: import math
  from unittest import TestCase
  import datetime
  import plotly.figure_factory
  import plotly.io
  from plotly.exceptions import PlotlyError
  from plotly.tests.test_optional.optional_utils import NumpyTestUtilsMixin
  from plotly.graph_objs import graph_objs
  from plotly.tests.utils import TestCaseNoTemplate
label_desc: Use image node_id 1 for calling the TestAnnotatedHeatmap obj's underlying member method code with example usage: obj.test_unequal_z_text_size() without return types