class_docstr: Handle FSL ``output_type`` and version information.
  
  output type refers to the type of file fsl defaults to writing
  eg, NIFTI, NIFTI_GZ
  
  Examples
  --------
  
  >>> from nipype.interfaces.fsl import Info
  >>> Info.version()  # doctest: +SKIP
  >>> Info.output_type()  # doctest: +SKIP
docstr: Get the file extension for the given output type.
  
  Parameters
  ----------
  output_type : {'NIFTI', 'NIFTI_GZ', 'NIFTI_PAIR', 'NIFTI_PAIR_GZ'}
      String specifying the output type.
  
  Returns
  -------
  extension : str
      The file extension for the output type.
docstr_tok: ["Get","the","file","extension","for","the","given","output","type",".","Parameters","--","--","--","--","--","output_type",":","{","'NIFTI","'",",","'NIFTI_GZ","'",",","'NIFTI_PAIR","'",",","'NIFTI_PAIR_GZ","'","}","String","specifying","the","output","type",".","Returns","--","--","--","-","extension",":","str","The","file","extension","for","the","output","type","."]
code: def output_type_to_ext(cls, output_type):
      """Get the file extension for the given output type.
  
      Parameters
      ----------
      output_type : {'NIFTI', 'NIFTI_GZ', 'NIFTI_PAIR', 'NIFTI_PAIR_GZ'}
          String specifying the output type.
  
      Returns
      -------
      extension : str
          The file extension for the output type.
      """
  
      try:
          return cls.ftypes[output_type]
      except KeyError:
          msg = "Invalid FSLOUTPUTTYPE: ", output_type
          raise KeyError(msg)
  
imports: from glob import glob
  import os
  from ...None import logging
  from ...utils.filemanip import fname_presuffix
  from ..base import traits, isdefined, CommandLine, CommandLineInputSpec, PackageInfo
  from ...external.due import BibTeX
label_desc: Use image node_id 2 for calling the Info obj's underlying member method code with example usage: obj.output_type_to_ext(cls, output_type) and returns: cls