code: def test_outputtype_to_ext():
      for ftype, ext in fsl.Info.ftypes.items():
          res = fsl.Info.output_type_to_ext(ftype)
          assert res == ext
  
      with pytest.raises(KeyError):
          fsl.Info.output_type_to_ext("JUNK")
  
file_path: nipype/nipype/interfaces/fsl/tests/test_base.py
imports: import os
  import nipype.interfaces.fsl
  from nipype.interfaces.base import InterfaceResult
  from nipype.interfaces.fsl import check_fsl, no_fsl
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_outputtype_to_ext() without return types