def METHOD_NAME():
    texture = pv.Texture()
    with pytest.raises(ValueError, match='Third dimension'):
        texture._from_array(np.zeros((10, 10, 2)))
    with pytest.raises(ValueError, match='must be nn by nm'):
        texture._from_array(np.zeros(10))