code: def test_check_mesh():
      mesh = html_surface.check_mesh("fsaverage5")
      assert mesh is html_surface.check_mesh(mesh)
      with pytest.raises(ValueError):
          html_surface.check_mesh("fsaverage2")
      mesh.pop("pial_left")
      with pytest.raises(ValueError):
          html_surface.check_mesh(mesh)
      with pytest.raises(TypeError):
          html_surface.check_mesh(
              surface.load_surf_mesh(mesh["pial_right"])
          )
      mesh = datasets.fetch_surf_fsaverage()
      assert mesh is html_surface.check_mesh(mesh)
  
file_path: nilearn/nilearn/plotting/tests/test_html_surface.py
imports: import json
  import numpy
  import pytest
  from nilearn import datasets, image, surface
  from nilearn._utils.exceptions import DimensionError
  from nilearn.datasets import fetch_surf_fsaverage
  from nilearn.image import get_data
  from nilearn.plotting import html_surface
  from nilearn.plotting.js_plotting_utils import decode
  from .test_js_plotting_utils import check_colors, check_html
label_desc: Use image node_id 3 for calling a global function with example usage: test_check_mesh() without return types