def METHOD_NAME(ids):
    """Pack an array of uint32 primitive ids into float32 RGBA colors."""
    if ids.dtype != np.uint32:
        raise ValueError(f"ids must be uint32, got {ids.dtype}")
    return np.divide(
        ids.view(np.uint8).reshape(-1, 4),
        255,
        dtype=np.float32
    )