parameters: (bbox, mini_mask, image_shape)
return_statement: return mask
docstring: Resizes mini masks back to image size. Reverses the change
      of minimize_mask().
  
      See inspect_data.ipynb notebook for more details.
docstring_summary: Resizes mini masks back to image size. Reverses the change
      of minimize_mask().
docstring_tokens: Resizes mini masks back to image size . Reverses the change of minimize_mask () .
function: def expand_mask(bbox, mini_mask, image_shape):
      """Resizes mini masks back to image size. Reverses the change
      of minimize_mask().
  
      See inspect_data.ipynb notebook for more details.
      """
      mask = np.zeros(image_shape[:2] + (mini_mask.shape[-1],), dtype=bool)
      for i in range(mask.shape[-1]):
          m = mini_mask[:, :, i]
          y1, x1, y2, x2 = bbox[i][:4]
          h = y2 - y1
          w = x2 - x1
          m = scipy.misc.imresize(m.astype(float), (h, w), interp='bilinear')
          mask[y1:y2, x1:x2, i] = np.where(m >= 128, 1, 0)
      return mask
function_tokens: def expand_mask ( bbox , mini_mask , image_shape ) : mask = np . zeros ( image_shape [ : 2 ] + ( mini_mask . shape [ - 1 ] , ) , dtype = bool ) for i in range ( mask . shape [ - 1 ] ) : m = mini_mask [ : , : , i ] y1 , x1 , y2 , x2 = bbox [ i ] [ : 4 ] h = y2 - y1 w = x2 - x1 m = scipy . misc . imresize ( m . astype ( float ) , ( h , w ) , interp = 'bilinear' ) mask [ y1 : y2 , x1 : x2 , i ] = np . where ( m >= 128 , 1 , 0 ) return mask