code: def test_parcellations_no_warnings(img_4d_zeros_eye):
      parcellator = Parcellations(
          method="kmeans", n_parcels=1, verbose=0
      )
      with warnings.catch_warnings(record=True) as record:
          parcellator.fit(img_4d_zeros_eye)
      assert all([r.category is not UserWarning for r in record])
  
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 7 for calling a global function with example usage: test_parcellations_no_warnings(img_4d_zeros_eye) without return types