class_docstr: A surface :term:`mesh` having vertex,     coordinates and faces (triangles).
docstr: Write surface mesh to a Gifti file on disk.
  
  Parameters
  ----------
  gifti_file : path-like or str
      filename to save the mesh.
docstr_tok: ["Write","surface","mesh","to","a","Gifti","file","on","disk",".","Parameters","--","--","--","--","--","gifti_file",":","path-like","or","str","filename","to","save","the","mesh","."]
code: def to_gifti(self, gifti_file: pathlib.Path | str):
      """Write surface mesh to a Gifti file on disk.
  
      Parameters
      ----------
      gifti_file : path-like or str
          filename to save the mesh.
      """
      _io.mesh_to_gifti(self.coordinates, self.faces, gifti_file)
  
imports: from __future__ import annotations
  import abc
  import dataclasses
  import pathlib
  from typing import Dict
  import numpy
  from nilearn.experimental.surface import _io
label_desc: Use image node_id 2 for calling the Mesh obj's underlying member method code with example usage: obj.to_gifti(gifti_file) without return types