code: def test_lips3_nans():
      # These boxes caused nans in the Lips3 disjoint box tests
      phi = intvol.Lips3d
      box1 = np.zeros((40, 40, 40), dtype=np.int_)
      box2 = box1.copy()
      box1[23:30, 22:32, 9:13] = 1
      box2[7:22, 0, 8:17] = 1
      c = np.indices(box1.shape).astype(np.float64)
      assert_array_equal(np.isnan(phi(c, box2)), False)
      U = randorth(p=6)[0:3]
      e = np.dot(U.T, c.reshape((c.shape[0], np.prod(c.shape[1:]))))
      e.shape = (e.shape[0],) + c.shape[1:]
      assert_array_equal(np.isnan(phi(e, box1 + box2)), False)
  
imports: from itertools import combinations
  import numpy
  import numpy.linalg
  import pytest
  from numpy.testing import assert_almost_equal, assert_array_equal
  from ..None import intvol
label_desc: Use image node_id 23 for calling a global function with example usage: test_lips3_nans() without return types