code: def test_unknown_categories_in_targets(input_data_targettest):
      validator = TargetValidator(is_classification=True)
      validator.fit(input_data_targettest)
  
      # Add an extra category
      if isinstance(input_data_targettest, list):
          input_data_targettest.append(input_data_targettest[-1] + 5000)
      elif isinstance(input_data_targettest, (pd.DataFrame, pd.Series)):
          input_data_targettest.iloc[-1] = 5000
      elif isinstance(input_data_targettest, np.ndarray):
          input_data_targettest[-1] = 5000
  
      with pytest.raises(ValueError, match="Found unknown categories"):
          validator.transform(input_data_targettest)
  
imports: import numpy
  import pandas
  import sklearn.datasets
  import sklearn.model_selection
  from pandas.api.types import is_bool_dtype, is_numeric_dtype
  from scipy import sparse
  from sklearn.utils.multiclass import type_of_target
  from autosklearn.data.target_validator import TargetValidator
  import pytest
label_desc: Use image node_id 13 for calling a global function with example usage: test_unknown_categories_in_targets(input_data_targettest) without return types