code: def test_remove_regions_where():
      np.random.seed(34)
      for _ in range(4):
          f = np.random.random_sample((128, 128)) > 0.82
          labeled, n = mh.labeled.label(f)
          relabeled = mh.labeled.remove_regions_where(
              labeled, mh.labeled.labeled_size(labeled) < 2
          )
          relabeled, _ = mh.labeled.relabel(relabeled)
          sizes = mh.labeled.labeled_size(relabeled)
          assert sizes[1:].min() >= 2
  
imports: import numpy
  import mahotas
  import mahotas.labeled
  from pytest import raises
label_desc: Use image node_id 20 for calling a global function with example usage: test_remove_regions_where() without return types