code: def remove_regions_where(labeled, conditions, inplace=False):
      """Remove regions based on a boolean array
  
      A region is removed if ``conditions[region-id]`` evaluates true.
  
      This function **does not** relabel its arguments. You can use the
      ``relabel`` function for that::
  
          removed = relabel(remove_regions_where(labeled, conditions))
  
      Or, saving one image allocation::
  
          removed = relabel(remove_regions(labeled, conditions), inplace=True)
  
      This is the same, but reuses the memory in the relabeling operation.
  
  
      See Also
      --------
      remove_regions : function
          Variation of this function which uses integer indexing
      """
      (regions,) = np.where(conditions)
      return remove_regions(labeled, regions, inplace=inplace)
  
imports: from __future__ import division
  import numpy
  from .morph import get_structuring_elem
  from .None import _labeled
  from .internal import _get_output
  from ._filters import _checked_mode2int
  import mahotas
label_desc: Use image node_id 5 for calling a global function with example usage: remove_regions_where(labeled, conditions, inplace) and returns: remove_regions