code: def color_bins(
      attr: str,
      domain: list,
      colors: Union[str, list] = "PurpOr",
      null_color: list = [204, 204, 204],
  ):
      """Helper function for quickly creating a color bins style.
  
      Data values of each attribute are rounded down to the nearest value
      in the domain and are then styled with the corresponding color.
  
      Parameters
      ----------
      attr : str
          Attribute or column to symbolize by.
      domain : list
          Assign manual class break values.
      colors : Union[str, list], optional
          Color assigned to each domain value.
          - str: A valid named CARTOColors palette.
          - list: Array of colors in RGBA ``[ [r, g, b, [a]] ]``.
          Default is PurpOr.
      null_color : list, optional
          Color for null values.
          Default is [204, 204, 204].
      """
      return pdk.types.Function(
          "colorBins",
          **{
              "attr": attr,
              "domain": domain,
              "colors": colors,
              "nullColor": null_color,
          },
      )
  
imports: import pydeck
  from typing import Union
label_desc: Use image node_id 1 for calling a global function with example usage: color_bins(attr, domain, colors, null_color) and returns: pdk