original_docstring: Load a gradient from an image. Should be a horizontal strip. 
docstring: Load a gradient from an image. Should be a horizontal strip.
docstring_tokens: Load a gradient from an image . Should be a horizontal strip .
code: def make_gradient(img):
      """Load a gradient from an image. Should be a horizontal strip. """
      
      color_array = np.mean(np.array(Image.open(img)), axis=1)
      return ColorGradient(color_array)
code_tokens: def make_gradient ( img ) : color_array = np . mean ( np . array ( Image . open ( img ) ) , axis = 1 ) return ColorGradient ( color_array )
short_docstring: Load a gradient from an image.
short_docstring_tokens: Load a gradient from an image .
comment: """Load a gradient from an image. Should be a horizontal strip. """