code: def uint32_to_uint8(img):
      """Cast a uint32 raster to a 4-channel uint8 RGBA array."""
      return img.view(dtype=np.uint8).reshape(img.shape + (4,))
  
imports: import warnings
  from matplotlib.image import _ImageBase
  from matplotlib.patches import Patch
  from matplotlib.transforms import Bbox, TransformedBbox, BboxTransform
  import matplotlib
  import numpy
  from .None import reductions
  from .None import transfer_functions
  from .colors import Sets1to3
  from .core import bypixel, Canvas
label_desc: Use image node_id 1 for calling a global function with example usage: uint32_to_uint8(img) and returns: img