code: def test_one_mesh_info():
      fsaverage = datasets.fetch_surf_fsaverage()
      mesh = fsaverage["pial_left"]
      surf_map = surface.load_surf_data(fsaverage["sulc_left"])
      mesh = surface.load_surf_mesh(mesh)
      info = html_surface._one_mesh_info(
          surf_map, mesh, "90%", black_bg=True, bg_map=surf_map
      )
      assert {"_x", "_y", "_z", "_i", "_j", "_k"}.issubset(
          info["inflated_left"].keys()
      )
      assert len(decode(info["inflated_left"]["_x"], "<f4")) == len(
          surf_map
      )
      assert len(info["vertexcolor_left"]) == len(surf_map)
      cmax = np.max(np.abs(surf_map))
      assert (info["cmin"], info["cmax"]) == (-cmax, cmax)
      assert isinstance(info["cmax"], float)
      json.dumps(info)
      assert info["black_bg"]
      assert not info["full_brain_mesh"]
      check_colors(info["colorscale"])
  
      with pytest.warns(
          DeprecationWarning,
          match="one_mesh_info is a private function and is renamed "
          "to _one_mesh_info. Using the deprecated name will "
          "raise an error in release 0.13",
      ):
          html_surface.one_mesh_info(surf_map, 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 4 for calling a global function with example usage: test_one_mesh_info() without return types