class_docstr: Tests allowable data formats when constructing
  the basic Element types.
class_docstr_tok: ["Tests","allowable","data","formats","when","constructing","the","basic","Element","types","."]
code: def test_heatmap_construct_partial_sorted(self):
      data = [
          (chr(65 + i), chr(97 + j), i * j)
          for i in range(3)
          for j in [2, 0, 1]
          if i != j
      ]
      hmap = HeatMap(data)
      dataset = Dataset(
          {
              "x": ["A", "B", "C"],
              "y": ["c", "b", "a"],
              "z": [[0, 2, np.nan], [np.nan, 0, 0], [0, np.nan, 2]],
          },
          kdims=["x", "y"],
          vdims=["z"],
          label="unique",
      )
      self.assertEqual(hmap.gridded, dataset)
  
imports: import numpy
  import pandas
  import param
  from holoviews import RGB, Annotation, Area, Bars, BoxWhisker, Contours, Curve, Dataset, Dimension, Div, Element, ErrorBars, Graph, HeatMap, Histogram, Image, Path, Points, Polygons, QuadMesh, Raster, Scatter, Spikes, Tiles, TriMesh, VectorField
  from holoviews.element.comparison import ComparisonTestCase
  from holoviews.element.path import BaseShape
label_desc: Use image node_id 15 for calling the ElementConstructorTest obj's underlying member method code with example usage: obj.test_heatmap_construct_partial_sorted() without return types