code: def rgb2yiq(rgb, *, channel_axis=-1):
      """RGB to YIQ color space conversion.
  
      Parameters
      ----------
      rgb : (..., C=3, ...) array_like
          The image in RGB format. By default, the final dimension denotes
          channels.
      channel_axis : int, optional
          This parameter indicates which axis of the array corresponds to
          channels.
  
          .. versionadded:: 0.19
             ``channel_axis`` was added in 0.19.
  
      Returns
      -------
      out : (..., C=3, ...) ndarray
          The image in YIQ format. Same dimensions as input.
  
      Raises
      ------
      ValueError
          If `rgb` is not at least 2-D with shape (..., C=3, ...).
      """
      return _convert(yiq_from_rgb, rgb)
  
imports: from warnings import warn
  import numpy
  from scipy import linalg
  from .._shared.utils import _supported_float_type, channel_as_last_axis, identity, reshape_nd, slice_at_axis
  from ..util import dtype, dtype_limits
label_desc: Use image node_id 34 for calling a global function with example usage: rgb2yiq(rgb) and returns: _convert