code: def test_error_parcellation_method_none(test_image):
      with pytest.raises(
          ValueError, match="Parcellation method is specified as None. "
      ):
          Parcellations(method=None, verbose=0).fit(test_image)
  
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 3 for calling a global function with example usage: test_error_parcellation_method_none(test_image) without return types