parameters: (image, mask, color)
return_statement: return image
docstring: Apply the given mask to the image.
docstring_summary: Apply the given mask to the image.
docstring_tokens: Apply the given mask to the image .
function: def apply_mask(image, mask, color):
      """Apply the given mask to the image.
      """
      for c in range(3):
          image[:, :, c] = np.where(mask == 1,
                                    image[:, :, c] + color[c],
                                    image[:, :, c])
      return image
function_tokens: def apply_mask ( image , mask , color ) : for c in range ( 3 ) : image [ : , : , c ] = np . where ( mask == 1 , image [ : , : , c ] + color [ c ] , image [ : , : , c ] ) return image