def create_red_images_for_cameras(cameras: PinholeCamera, device: Device) -> list[Tensor]:
    """Creates red images for a given set of cameras."""
    imgs: list[Tensor] = []
    for height, width in zip(cameras.height.tolist(), cameras.width.tolist()):
        image_data = torch.zeros(3, int(height), int(width), dtype=torch.uint8)  # (C, H, W)
        image_data[0, ...] = 255  # Red channel
        imgs.append(image_data.to(device=device))
    return imgs
Creates red images for a given set of cameras.
tests/nerf/test_data_utils.py