def METHOD_NAME(self):
    d = cubic(shape=[3, 3, 3])
    s = tools.get_cubic_spacing(d)
    assert np.all(s == [1, 1, 1])
    d = cubic(shape=[3, 3, 3], spacing=[1, 2, 3])
    s = tools.get_cubic_spacing(d)
    assert np.all(s == [1, 2, 3])
    d = cubic(shape=[5, 4, 3], spacing=[1, 2, 3])
    s = tools.get_cubic_spacing(d)
    assert np.all(s == [1, 2, 3])