code: def test_ec_wrapping():
      # Test wrapping for EC1 calculation
      assert intvol.EC1d(np.ones((6,), dtype=np.int_)) == 1
      box1 = np.array([1, 1, 0, 1, 1, 1], dtype=np.int_)
      assert intvol.EC1d(box1) == 2
      # 2D
      box1 = np.zeros((3, 6), dtype=np.int_)
      box1[1] = 1
      assert intvol.EC2d(box1) == 1
      box1[1, 3] = 0
      assert intvol.EC2d(box1) == 2
      # 3D
      box1 = np.zeros((3, 6, 3), dtype=np.int_)
      box1[1, :, 1] = 1
      assert intvol.EC3d(box1) == 1
      box1[1, 3, 1] = 0
      assert intvol.EC3d(box1) == 2
  
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 25 for calling a global function with example usage: test_ec_wrapping() without return types