code: def test_bug_1300(self):
      # https://github.com/plotly/plotly.py/issues/1300
      sub_z = [[0.1, 0.0, 0.0], [0.0, 1.0, 0.1]]
  
      # sub_z = sub_z.tolist()
  
      # Standard scale direction
      fig = ff.create_annotated_heatmap(
          sub_z, colorscale="Greens", showscale=True, reversescale=True
      )
  
      expected = graph_objs.Figure(
          {
              "data": [
                  {
                      "colorscale": [
                          [0.0, "rgb(247,252,245)"],
                          [0.125, "rgb(229,245,224)"],
                          [0.25, "rgb(199,233,192)"],
                          [0.375, "rgb(161,217,155)"],
                          [0.5, "rgb(116,196,118)"],
                          [0.625, "rgb(65,171,93)"],
                          [0.75, "rgb(35,139,69)"],
                          [0.875, "rgb(0,109,44)"],
                          [1.0, "rgb(0,68,27)"],
                      ],
                      "reversescale": True,
                      "showscale": True,
                      "type": "heatmap",
                      "z": [[0.1, 0.0, 0.0], [0.0, 1.0, 0.1]],
                  }
              ],
              "layout": {
                  "annotations": [
                      {
                          "font": {"color": "#FFFFFF"},
                          "showarrow": False,
                          "text": "0.1",
                          "x": 0,
                          "xref": "x",
                          "y": 0,
                          "yref": "y",
                      },
                      {
                          "font": {"color": "#FFFFFF"},
                          "showarrow": False,
                          "text": "0.0",
                          "x": 1,
                          "xref": "x",
                          "y": 0,
                          "yref": "y",
                      },
                      {
                          "font": {"color": "#FFFFFF"},
                          "showarrow": False,
                          "text": "0.0",
                          "x": 2,
                          "xref": "x",
                          "y": 0,
                          "yref": "y",
                      },
                      {
                          "font": {"color": "#FFFFFF"},
                          "showarrow": False,
                          "text": "0.0",
                          "x": 0,
                          "xref": "x",
                          "y": 1,
                          "yref": "y",
                      },
                      {
                          "font": {"color": "#000000"},
                          "showarrow": False,
                          "text": "1.0",
                          "x": 1,
                          "xref": "x",
                          "y": 1,
                          "yref": "y",
                      },
                      {
                          "font": {"color": "#FFFFFF"},
                          "showarrow": False,
                          "text": "0.1",
                          "x": 2,
                          "xref": "x",
                          "y": 1,
                          "yref": "y",
                      },
                  ],
                  "xaxis": {
                      "gridcolor": "rgb(0, 0, 0)",
                      "showticklabels": False,
                      "side": "top",
                      "ticks": "",
                  },
                  "yaxis": {
                      "showticklabels": False,
                      "ticks": "",
                      "ticksuffix": "  ",
                  },
              },
          }
      )
  
      # Remove uids
      for trace in fig.data:
          trace.update(uid=None)
      for trace in expected.data:
          trace.update(uid=None)
  
      # Perform comparison
      self.assert_fig_equal(fig, expected)
  
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 7 for calling the TestAnnotatedHeatmap obj's underlying member method code with example usage: obj.test_bug_1300() without return types