code: def test_check_cameras(self):
      _check_cameras(FoVPerspectiveCameras())
      _check_cameras(FoVPerspectiveCameras())
      with self.assertRaisesRegex(
          ValueError, "Cameras must be specified"
      ):
          _check_cameras(None)
      with self.assertRaisesRegex(
          ValueError, "MeshRasterizerOpenGL only works with"
      ):
          _check_cameras(PerspectiveCameras())
      with self.assertRaisesRegex(
          ValueError, "MeshRasterizerOpenGL only works with"
      ):
          _check_cameras(OrthographicCameras())
  
      MeshRasterizerOpenGL(FoVPerspectiveCameras().cuda())(
          self.meshes_world
      )
      MeshRasterizerOpenGL(FoVOrthographicCameras().cuda())(
          self.meshes_world
      )
      MeshRasterizerOpenGL()(
          self.meshes_world, cameras=FoVPerspectiveCameras().cuda()
      )
  
      with self.assertRaisesRegex(
          ValueError, "MeshRasterizerOpenGL only works with"
      ):
          MeshRasterizerOpenGL(PerspectiveCameras().cuda())(
              self.meshes_world
          )
      with self.assertRaisesRegex(
          ValueError, "MeshRasterizerOpenGL only works with"
      ):
          MeshRasterizerOpenGL(OrthographicCameras().cuda())(
              self.meshes_world
          )
      with self.assertRaisesRegex(
          ValueError, "Cameras must be specified"
      ):
          MeshRasterizerOpenGL()(self.meshes_world)
  
imports: import unittest
  import numpy
  import torch
  from PIL import Image
  from pytorch3d.renderer import FoVOrthographicCameras, FoVPerspectiveCameras, look_at_view_transform, MeshRasterizer, OrthographicCameras, PerspectiveCameras, PointsRasterizationSettings, PointsRasterizer, RasterizationSettings
  from pytorch3d.renderer.fisheyecameras import FishEyeCameras
  from pytorch3d.renderer.opengl.rasterizer_opengl import _check_cameras, _check_raster_settings, _convert_meshes_to_gl_ndc, _parse_and_verify_image_size, MeshRasterizerOpenGL
  from pytorch3d.structures import Pointclouds
  from pytorch3d.structures.meshes import Meshes
  from pytorch3d.utils.ico_sphere import ico_sphere
  from .common_testing import get_tests_dir, TestCaseMixin
label_desc: Use image node_id 2 for calling the TestMeshRasterizerOpenGLUtils obj's underlying member method code with example usage: obj.test_check_cameras() without return types