code: def xyz2rgb(xyz, dtype=None):
      """
      rgb = xyz2rgb(xyz, dtype={float})
  
      Convert XYZ to sRGB coordinates
  
      The output should be interpreted as sRGB. See Wikipedia for more details:
  
      https://en.wikipedia.org/wiki/SRGB
  
      Parameters
      ----------
      xyz : ndarray
      dtype : dtype, optional
          What dtype to return. Default will be floats
  
      Returns
      -------
      rgb : ndarray
  
      See Also
      --------
      rgb2xyz : function
          The reverse function
      """
      transformation = np.array(
          [
              [3.2406, -1.5372, -0.4986],
              [-0.9689, 1.8758, 0.0415],
              [0.0557, -0.2040, 1.0570],
          ]
      )
      rgb_linear = _convert(xyz, transformation, dtype, "xyz2rgb")
      a = 0.055
      srgb_high = (1 + a) * np.power(rgb_linear, 1.0 / 2.4)
      srgb_high -= a
      srgb_low = 12.92 * rgb_linear
      srgb = np.choose(rgb_linear <= 0.0031308, [srgb_low, srgb_high])
      srgb *= 255.0
      return srgb
  
file_path: mahotas/mahotas/colors.py
imports: from __future__ import division
  import numpy
  from .internal import _check_3
label_desc: Use image node_id 4 for calling a global function with example usage: xyz2rgb(xyz, dtype) and returns: srgb