code: def _test_4d_label(
      self,
      wanted,
      fake_labels,
      include_global=False,
      incl_shared_variance=True,
  ):
      # set up
      utils.save_toy_nii(fake_labels, self.filenames["4d_label_file"])
  
      # run
      iface.SignalExtraction(
          in_file=self.filenames["in_file"],
          label_files=self.filenames["4d_label_file"],
          class_labels=self.labels,
          incl_shared_variance=incl_shared_variance,
          include_global=include_global,
      ).run()
  
      wanted_labels = (
          self.global_labels if include_global else self.labels
      )
  
      # assert
      self.assert_expected_output(wanted_labels, wanted)
  
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 10 for calling the TestSignalExtraction obj's underlying member method code with example usage: obj._test_4d_label(wanted, fake_labels, include_global, incl_shared_variance) without return types