code: def randombox(shape):
      """
      Generate a random box, returning the box and the edge lengths
      """
      edges = [
          np.random.randint(0, shape[j] + 1, size=(2,))
          for j in range(len(shape))
      ]
  
      for j in range(len(shape)):
          edges[j].sort()
          if edges[j][0] == edges[j][1]:
              edges[j][0] = 0
              edges[j][1] = shape[j] / 2 + 1
      return edges, box(shape, edges)
  
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 4 for calling a global function with example usage: randombox(shape) and returns: edges,  box