original_docstring:  Simple but useful method to get connected regions. 
      
docstring: Simple but useful method to get connected regions.
docstring_tokens: Simple but useful method to get connected regions .
code: def connected_reg(arr, background=0):
      ''' Simple but useful method to get connected regions. 
      '''
      all_labels = measure.label(arr)
      sub_labels = measure.label(blobs, background=0)
code_tokens: def connected_reg ( arr , background = 0 ) : all_labels = measure . label ( arr ) sub_labels = measure . label ( blobs , background = 0 )
short_docstring: Simple but useful method to get connected regions.
short_docstring_tokens: Simple but useful method to get connected regions .
comment: ''' Simple but useful method to get connected regions. 
      '''