code: def test_close():
      from mahotas.morph import close
  
      np.random.seed(123)
      A = np.random.random_sample((16, 16)) > 0.345
      assert close(A).shape == (16, 16)
  
imports: import mahotas
  import numpy
  from mahotas.morph import get_structuring_elem, subm, tophat_open, tophat_close
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_close() without return types