code: def rgb2sepia(rgb):
      """
      sepia = rgb2sepia(rgb)
  
      Parameters
      ----------
      rgb : ndarray
          Must be of shape (h,w,3)
  
      Returns
      -------
      sepia : ndarray
          Output is of same shape as ``rgb``
      """
      rgb2sepia_weights = np.array(
          [
              [0.393, 0.769, 0.189],
              [0.349, 0.686, 0.168],
              [0.272, 0.534, 0.131],
          ]
      )
      sepia = _convert(
          rgb, rgb2sepia_weights, dtype=np.float32, funcname="rgb2sepia"
      )
      sepia = np.minimum(sepia, 255)
      sepia = np.maximum(sepia, 0)
      return sepia.astype(np.uint8)
  
file_path: mahotas/mahotas/colors.py
imports: from __future__ import division
  import numpy
  from .internal import _check_3
label_desc: Use image node_id 7 for calling a global function with example usage: rgb2sepia(rgb) and returns: sepia