code: def test_hroi_from_domain():
      dom = make_domain()
      data = np.random.rand(*shape)
      data[:2, 0:2, 0:2] = 2
      rdata = np.reshape(data, (data.size, 1))
      hroi = HROI_as_discrete_domain_blobs(
          dom, rdata, threshold=1.0, smin=0
      )
      assert hroi.k == 1
  
imports: import numpy
  from numpy.testing import assert_array_equal
  from ..discrete_domain import domain_from_binary_array
  from ..hroi import HROI_as_discrete_domain_blobs, make_hroi_from_subdomain
  from ..mroi import subdomain_from_array
label_desc: Use image node_id 15 for calling a global function with example usage: test_hroi_from_domain() without return types