code: def assert_expected_output(self, labels, wanted):
      with open(self.filenames["out_file"]) as output:
          got = [line.split() for line in output]
          labels_got = got.pop(0)  # remove header
          assert labels_got == labels
          assert (
              len(got) == self.fake_fmri_data.shape[3]
          ), "num rows and num volumes"
          # convert from string to float
          got = [[float(num) for num in row] for row in got]
          for i, time in enumerate(got):
              assert len(labels) == len(time)
              for j, segment in enumerate(time):
                  npt.assert_almost_equal(
                      segment, wanted[i][j], decimal=1
                  )
  
file_path: nipype/nipype/interfaces/tests/test_nilearn.py
imports: import os
  import numpy
  from ...testing import utils
  from ..None import nilearn
  from ...pipeline import engine
  import pytest
  import numpy.testing
label_desc: Use image node_id 11 for calling the TestSignalExtraction obj's underlying member method code with example usage: obj.assert_expected_output(labels, wanted) without return types