class_docstr: Abstract class for surface figures.
  
  Parameters
  ----------
  figure : Figure instance or ``None``, optional
      Figure to be wrapped.
  
  output_file : :obj:`str` or ``None``, optional
      Path to output file.
code: def __init__(self, figure=None, output_file=None):
      self.figure = figure
      self.output_file = output_file
  
file_path: nilearn/nilearn/plotting/displays/_figures.py
imports: from nilearn._utils.helpers import is_kaleido_installed, is_plotly_installed
label_desc: Use image node_id 1 to create a new SurfaceFigure object  with example: obj = SurfaceFigure(figure, output_file)