code: def test_parcellations_warnings(img_4d_zeros_eye):
      parcellator = Parcellations(
          method="kmeans", n_parcels=7, verbose=0
      )
  
      with pytest.warns(UserWarning):
          parcellator.fit(img_4d_zeros_eye)
  
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 6 for calling a global function with example usage: test_parcellations_warnings(img_4d_zeros_eye) without return types