def METHOD_NAME(self):
    width = 100
    r_max = 10.0
    num_points = 100
    box_size = r_max * 3.1
    box, points = freud.data.make_random_system(box_size, num_points, is2D=True)
    vox = freud.density.SphereVoxelization(width, r_max)
    with pytest.raises(AttributeError):
        vox.plot()
    assert vox._repr_png_() is None
    vox.compute((box, points))
    vox.plot()
    vox = freud.density.SphereVoxelization(width, r_max)
    test_box = freud.box.Box.cube(box_size)
    vox.compute((test_box, points))
    vox.plot()
    assert vox._repr_png_() is None
    plt.close("all")