code: def test_unfitted_inverse_transform(client):
      """Try calling `.inverse_transform()` without fitting first"""
      tmp = cudf.Series(np.random.choice(10, (10,)))
      df = dask_cudf.from_cudf(tmp, npartitions=len(client.has_what()))
      le = LabelEncoder()
  
      with pytest.raises(NotFittedError):
          le.transform(df)
  
file_path: cuml/python/cuml/tests/dask/test_dask_label_encoder.py
imports: from cuml.common.exceptions import NotFittedError
  import pytest
  from cuml.internals.safe_imports import cpu_only_import
  import cuml
  from cuml.dask.preprocessing.LabelEncoder import LabelEncoder
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 7 for calling a global function with example usage: test_unfitted_inverse_transform(client) without return types