code: def test_list_nipy_interfacesp(self):
      with pytest.raises(SystemExit) as cm:
          with capture_sys_output() as (stdout, stderr):
              nipype_cmd.main(["nipype_cmd", "nipype.interfaces.nipy"])
  
      # repeat twice in case nipy raises warnings
      with pytest.raises(SystemExit) as cm:
          with capture_sys_output() as (stdout, stderr):
              nipype_cmd.main(["nipype_cmd", "nipype.interfaces.nipy"])
      exit_exception = cm.value
      assert exit_exception.code == 0
  
      assert stderr.getvalue() == ""
      assert (
          stdout.getvalue()
          == """Available Interfaces:
  \tComputeMask
  \tEstimateContrast
  \tFitGLM
  \tSimilarity
  \tSpaceTimeRealigner
  """
      )
  
file_path: nipype/nipype/utils/tests/test_cmd.py
imports: import pytest
  import sys
  from contextlib import contextmanager
  from io import StringIO
  from ...utils import nipype_cmd
label_desc: Use image node_id 3 for calling the TestNipypeCMD obj's underlying member method code with example usage: obj.test_list_nipy_interfacesp() without return types