code: def test_fit_transform(method, n_parcel, test_image_2):
      fmri_imgs = [test_image_2] * 3
  
      parcellator = Parcellations(
          method=method, n_parcels=n_parcel, verbose=0
      )
      parcellator.fit_transform(fmri_imgs)
  
      assert parcellator.labels_img_ is not None
      if method not in ["kmeans", "rena", "hierarchical_kmeans"]:
          assert parcellator.connectivity_ is not None
      assert parcellator.masker_ is not None
  
imports: import warnings
  import numpy
  import pandas
  import pytest
  from nibabel import Nifti1Image
  from nilearn.conftest import _affine_eye
  from nilearn.regions.parcellations import Parcellations, _check_parameters_transform
label_desc: Use image node_id 14 for calling a global function with example usage: test_fit_transform(method, n_parcel, test_image_2) without return types