code: def test_labelencoder_unseen(client):
      """Try encoding a value that was not present during fitting"""
      df = dask_cudf.from_cudf(
          cudf.Series(np.random.choice(10, (10,))),
          npartitions=len(client.has_what()),
      )
      le = LabelEncoder().fit(df)
      assert le._fitted
  
      with pytest.raises(KeyError):
          tmp = dask_cudf.from_cudf(
              cudf.Series([-100, -120]),
              npartitions=len(client.has_what()),
          )
          le.transform(tmp).compute()
  
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 4 for calling a global function with example usage: test_labelencoder_unseen(client) without return types