code: def test_anti_aliasing(default_theme):
      with pytest.raises(
          ValueError, match="anti_aliasing must be either"
      ):
          default_theme.anti_aliasing = "invalid value"
  
      with pytest.raises(TypeError, match="must be either"):
          default_theme.anti_aliasing = 42
  
imports: import os
  import pytest
  import vtk
  import pyvista
  from pyvista import colors
  from pyvista.examples.downloads import download_file
  from pyvista.plotting.themes import DarkTheme, Theme, _set_plot_theme_from_env
  from pyvista.plotting.utilities.gl_checks import uses_egl
label_desc: Use image node_id 46 for calling a global function with example usage: test_anti_aliasing(default_theme) without return types