class_docstr: A surface mesh stored in a Gifti or Freesurfer file.
code: def __init__(self, file_path: pathlib.Path | str) -> None:
      self.file_path = pathlib.Path(file_path)
      self.n_vertices = _io.read_mesh(self.file_path)[
          "coordinates"
      ].shape[0]
  
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 1 to create a new FileMesh object from inherited base classes: Mesh with example: obj = FileMesh(file_path)