def METHOD_NAME(self):
    arr = self.biarr
    mode = "density"
    for levels in [3, None]:
        with self.subTest(levels=levels):
            out = density(arr, mode=mode, contours=True, percentiles=False)
            self.assertTrue(isinstance(out, matplotlib.axes.Axes))
        plt.close("all")