code: def combine_scaled(r, g, b, a):
      """Combine components in [0, 1] to rgba uint32"""
      r2 = min(255, np.uint32(r * 255))
      g2 = min(255, np.uint32(g * 255))
      b2 = min(255, np.uint32(b * 255))
      a2 = min(255, np.uint32(a * 255))
      return np.uint32((a2 << 24) | (b2 << 16) | (g2 << 8) | r2)
  
file_path: datashader/datashader/composite.py
imports: from __future__ import annotations
  import numba
  import numpy
  import os
label_desc: Use image node_id 3 for calling a global function with example usage: combine_scaled(r, g, b, a) and returns: np