docstr: Helper function to check that the tensors in
  the Fragments frag_1 and frag_2 are the same.
docstr_tok: ["Helper","function","to","check","that","the","tensors","in","the","Fragments","frag_1","and","frag_2","are","the","same","."]
code: def _check_fragments(self, frag_1, frag_2):
      """
      Helper function to check that the tensors in
      the Fragments frag_1 and frag_2 are the same.
      """
      self.assertClose(frag_1.idx, frag_2.idx)
      self.assertClose(frag_1.dists, frag_2.dists)
      self.assertClose(frag_1.zbuf, frag_2.zbuf)
  
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 3 for calling the TestRasterizeRectangleImagesPointclouds obj's underlying member method code with example usage: obj._check_fragments(frag_1, frag_2) without return types