Check whether parameter is an fs.surface instance.
ensure.fs.surface(surface)an fs.surface instance, unless an error occurs.
an fs.surface instance which will be returned as-is, a tmesh3d which will be converted to a surface using tmesh3d.to.fs.surface, or a character string which will be interpreted as a file system path and loaded with freesurferformats::read.fs.surface. Anything else will stop with an error.