code: def test_compare_file_and_inmemory_mesh(mini_mesh, tmp_path):
      left = mini_mesh["left_hemisphere"]
      gifti_file = tmp_path / "left.gii"
      left.to_gifti(gifti_file)
  
      left_read = FileMesh(gifti_file)
      assert left.n_vertices == left_read.n_vertices
      assert np.array_equal(left.coordinates, left_read.coordinates)
      assert np.array_equal(left.faces, left_read.faces)
  
      left_loaded = left_read.loaded()
      assert isinstance(left_loaded, InMemoryMesh)
      assert left.n_vertices == left_loaded.n_vertices
      assert np.array_equal(left.coordinates, left_loaded.coordinates)
      assert np.array_equal(left.faces, left_loaded.faces)
  
file_path: nilearn/nilearn/experimental/surface/tests/test_surface_image.py
imports: import numpy
  import pytest
  from nilearn.experimental.surface import FileMesh, InMemoryMesh, SurfaceImage
label_desc: Use image node_id 1 for calling a global function with example usage: test_compare_file_and_inmemory_mesh(mini_mesh, tmp_path) without return types