code: def test_points_image_size_arg(self):
      points = Pointclouds([verts0])
  
      with self.assertRaisesRegex(
          ValueError, re.escape("tuple/list of (H, W)")
      ):
          rasterize_points(
              points,
              (100, 200, 3),
              0.0001,
              points_per_pixel=1,
          )
  
      with self.assertRaisesRegex(
          ValueError, "sizes must be greater than 0"
      ):
          rasterize_points(
              points,
              (0, 10),
              0.0001,
              points_per_pixel=1,
          )
  
      with self.assertRaisesRegex(ValueError, "sizes must be integers"):
          rasterize_points(
              points,
              (100.5, 120.5),
              0.0001,
              points_per_pixel=1,
          )
  
imports: import re
  import unittest
  from itertools import product
  import numpy
  import torch
  from PIL import Image
  from pytorch3d.io import load_obj
  from pytorch3d.renderer import BlendParams, FoVPerspectiveCameras, look_at_view_transform, Materials, MeshRasterizer, MeshRenderer, PointLights, RasterizationSettings, SoftPhongShader, SplatterPhongShader, TexturesUV
  from pytorch3d.renderer.mesh.rasterize_meshes import rasterize_meshes, rasterize_meshes_python
  from pytorch3d.renderer.mesh.rasterizer import Fragments
  from pytorch3d.renderer.opengl import MeshRasterizerOpenGL
  from pytorch3d.renderer.points import AlphaCompositor, PointsRasterizationSettings, PointsRasterizer, PointsRenderer
  from pytorch3d.renderer.points.rasterize_points import rasterize_points, rasterize_points_python
  from pytorch3d.renderer.points.rasterizer import PointFragments
  from pytorch3d.structures import Meshes, Pointclouds
  from pytorch3d.transforms.transform3d import Transform3d
  from pytorch3d.utils import torus
  from .common_testing import get_pytorch3d_dir, get_tests_dir, load_rgb_image, TestCaseMixin
label_desc: Use image node_id 2 for calling the TestRasterizeRectangleImagesErrors obj's underlying member method code with example usage: obj.test_points_image_size_arg() without return types