code: def grey(n: int) -> Palette:
      """Generate a palette of colors from the Greys palette.
  
      The full Greys palette that serves as input for deriving new palettes
      has 256 colors, and looks like:
  
      :bokeh-palette:`grey(256)`
  
      Args:
          n (int) : size of the palette to generate
  
      Returns:
          seq[str] : a sequence of hex RGB color strings
  
      Raises:
          ValueError if n is greater than the base palette length of 256
  
      Examples:
  
      .. code-block:: python
  
          >>> grey(6)
          ('#000000', '#333333', '#666666', '#999999', '#cccccc', '#ffffff')
  
      The resulting palette looks like: :bokeh-palette:`gray(6)`
  
      .. note::
          This function also has the alternate spelling ``gray``
  
      """
      return linear_palette(Greys256, n)
  
file_path: bokeh/src/bokeh/palettes.py
imports: from __future__ import annotations
  import logging
  import math
  from copy import deepcopy
  from typing import TYPE_CHECKING
  import numpy
  from .colors.util import RGB, NamedColor
label_desc: Use image node_id 11 for calling a global function with example usage: grey(n) and returns: linear_palette