code: def _check_raster_settings(raster_settings) -> None:
      # Check that the rasterizer's settings are compatible with MeshRasterizerOpenGL.
      if raster_settings.faces_per_pixel > 1:
          warnings.warn(
              "MeshRasterizerOpenGL currently works only with one face per pixel."
          )
      if raster_settings.cull_backfaces:
          warnings.warn(
              "MeshRasterizerOpenGL cannot cull backfaces yet, rasterizing without culling."
          )
      if raster_settings.cull_to_frustum:
          warnings.warn(
              "MeshRasterizerOpenGL cannot cull to frustum yet, rasterizing without culling."
          )
      if raster_settings.z_clip_value is not None:
          raise NotImplementedError(
              "MeshRasterizerOpenGL cannot do z-clipping yet."
          )
      if raster_settings.perspective_correct is False:
          raise ValueError(
              "MeshRasterizerOpenGL always uses perspective-correct interpolation."
          )
  
imports: import warnings
  from typing import Optional, Tuple, Union
  import numpy
  import OpenGL.GL
  import pycuda.gl
  import torch
  import torch.nn
  from pytorch3d.structures.meshes import Meshes
  from ..cameras import FoVOrthographicCameras, FoVPerspectiveCameras
  from ..mesh.rasterizer import Fragments, RasterizationSettings
  from ..utils import parse_image_size
  from .opengl_utils import _torch_to_opengl, global_device_context_store
label_desc: Use image node_id 3 for calling a global function with example usage: _check_raster_settings(raster_settings) without return types