code: def test_load_surf_mesh():
      coords, faces = generate_surf()
      mesh = Mesh(coords, faces)
      assert_array_equal(mesh.coordinates, coords)
      assert_array_equal(mesh.faces, faces)
      # Call load_surf_mesh with a Mesh as argument
      loaded_mesh = load_surf_mesh(mesh)
      assert isinstance(loaded_mesh, Mesh)
      assert_array_equal(mesh.coordinates, loaded_mesh.coordinates)
      assert_array_equal(mesh.faces, loaded_mesh.faces)
  
      mesh_like = MeshLikeObject(coords, faces)
      assert_array_equal(mesh_like.coordinates, coords)
      assert_array_equal(mesh_like.faces, faces)
      # Call load_surf_mesh with an object having
      # coordinates and faces attributes
      loaded_mesh = load_surf_mesh(mesh_like)
      assert isinstance(loaded_mesh, Mesh)
      assert_array_equal(mesh_like.coordinates, loaded_mesh.coordinates)
      assert_array_equal(mesh_like.faces, loaded_mesh.faces)
  
imports: import os
  import tempfile
  import warnings
  import nibabel
  import numpy
  import pytest
  from nibabel import gifti
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from scipy.spatial import Delaunay
  from scipy.stats import pearsonr
  from nilearn import datasets, image
  from nilearn._utils import data_gen
  from nilearn.image import resampling
  from nilearn.surface import Mesh, Surface, load_surf_data, load_surf_mesh, surface
  from nilearn.surface.surface import _gifti_img_to_mesh, _load_surf_files_gifti_gzip
  from nilearn.surface.tests._testing import flat_mesh, generate_surf, z_const_img
label_desc: Use image node_id 7 for calling a global function with example usage: test_load_surf_mesh() without return types