code: def test_simple_to(self):
      # Check that to() works without a cameras object.
      device = torch.device("cuda:0")
      rasterizer = MeshRasterizer()
      rasterizer.to(device)
  
      rasterizer = MeshRasterizerOpenGL()
      rasterizer.to(device)
  
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 6 for calling the TestMeshRasterizer obj's underlying member method code with example usage: obj.test_simple_to() without return types