class_docstr: Note: Tests currently do a poor job of testing functionality
code: def test_tcompcor_merge_intersect_masks(self):
      for method in ["union", "intersect"]:
          TCompCor(
              realigned_file=self.realigned_file,
              mask_files=self.mask_files,
              merge_method=method,
          ).run()
          if method == "union":
              assert np.array_equal(
                  nb.load("mask_000.nii.gz").dataobj,
                  ([[[0, 0], [0, 0]], [[0, 0], [1, 0]]]),
              )
          if method == "intersect":
              assert np.array_equal(
                  nb.load("mask_000.nii.gz").dataobj,
                  ([[[0, 0], [0, 0]], [[0, 1], [0, 0]]]),
              )
  
imports: import os
  import nibabel
  import numpy
  import pytest
  from ...testing import utils
  from ..confounds import CompCor, TCompCor, ACompCor
label_desc: Use image node_id 10 for calling the TestCompCor obj's underlying member method code with example usage: obj.test_tcompcor_merge_intersect_masks() without return types