code: def test_data_generate_categorical5(self):
      with assert_raises(ValueError):
          generate_data_categorical(
              n_train=self.n_train,
              n_test=self.n_test,
              n_category_in=5,
              n_category_out=3,
              n_informative=1,
              n_features=1,
              contamination=self.contamination,
              random_state=-1,
          )
  
      with assert_raises(ValueError):
          generate_data_categorical(
              n_train=0,
              n_test=self.n_test,
              n_category_in=5,
              n_category_out=3,
              n_informative=1,
              n_features=1,
              contamination=self.contamination,
              random_state=self.random_state,
          )
  
      with assert_raises(ValueError):
          generate_data_categorical(
              n_train=self.n_train,
              n_test=-1,
              n_category_in=5,
              n_category_out=3,
              n_informative=1,
              n_features=1,
              contamination=self.contamination,
              random_state=self.random_state,
          )
  
      with assert_raises(ValueError):
          generate_data_categorical(
              n_train="not int",
              n_test=self.n_test,
              n_category_in=5,
              n_category_out=3,
              n_informative=1,
              n_features=1,
              contamination=self.contamination,
              random_state=self.random_state,
          )
  
      with assert_raises(ValueError):
          generate_data_categorical(
              n_train=self.n_train,
              n_test="not int",
              n_category_in=5,
              n_category_out=3,
              n_informative=1,
              n_features=1,
              contamination=self.contamination,
              random_state=self.random_state,
          )
  
      with assert_raises(ValueError):
          generate_data_categorical(
              n_train=self.n_train,
              n_test=self.n_test,
              n_category_in=5,
              n_category_out=3,
              n_informative=1,
              n_features=0,
              contamination=self.contamination,
              random_state=self.random_state,
          )
  
      with assert_raises(ValueError):
          generate_data_categorical(
              n_train=self.n_train,
              n_test=self.n_test,
              n_category_in=5,
              n_category_out=3,
              n_informative=1,
              n_features="not int",
              contamination=self.contamination,
              random_state=self.random_state,
          )
      with assert_raises(ValueError):
          generate_data_categorical(
              n_train=self.n_train,
              n_test=self.n_test,
              n_category_in=5,
              n_category_out=3,
              n_informative=-1,
              n_features=1,
              contamination=self.contamination,
              random_state=self.random_state,
          )
      with assert_raises(ValueError):
          generate_data_categorical(
              n_train=self.n_train,
              n_test=self.n_test,
              n_category_in=5,
              n_category_out=3,
              n_informative="not int",
              n_features=1,
              contamination=self.contamination,
              random_state=self.random_state,
          )
      with assert_raises(ValueError):
          generate_data_categorical(
              n_train=self.n_train,
              n_test=self.n_test,
              n_category_in=5,
              n_category_out=3,
              n_informative=1,
              n_features=1,
              contamination=0.6,
              random_state=self.random_state,
          )
      with assert_raises(ValueError):
          generate_data_categorical(
              n_train=self.n_train,
              n_test=self.n_test,
              n_category_in=5,
              n_category_out=3,
              n_informative=1,
              n_features=1,
              contamination="not float",
              random_state=self.random_state,
          )
      with assert_raises(ValueError):
          generate_data_categorical(
              n_train=self.n_train,
              n_test=self.n_test,
              n_category_in=-1,
              n_category_out=3,
              n_informative=1,
              n_features=1,
              contamination=self.contamination,
              random_state=self.random_state,
          )
      with assert_raises(ValueError):
          generate_data_categorical(
              n_train=self.n_train,
              n_test=self.n_test,
              n_category_in="not int",
              n_category_out=3,
              n_informative=1,
              n_features=1,
              contamination=self.contamination,
              random_state=self.random_state,
          )
      with assert_raises(ValueError):
          generate_data_categorical(
              n_train=self.n_train,
              n_test=self.n_test,
              n_category_in=self.n_train + self.n_test + 1,
              n_category_out=3,
              n_informative=1,
              n_features=1,
              contamination=self.contamination,
              random_state=self.random_state,
          )
  
      with assert_raises(ValueError):
          generate_data_categorical(
              n_train=self.n_train,
              n_test=self.n_test,
              n_category_in=5,
              n_category_out=-1,
              n_informative=1,
              n_features=1,
              contamination=self.contamination,
              random_state=self.random_state,
          )
      with assert_raises(ValueError):
          generate_data_categorical(
              n_train=self.n_train,
              n_test=self.n_test,
              n_category_in=5,
              n_category_out="not int",
              n_informative=1,
              n_features=1,
              contamination=self.contamination,
              random_state=self.random_state,
          )
      with assert_raises(ValueError):
          generate_data_categorical(
              n_train=self.n_train,
              n_test=self.n_test,
              n_category_in=5,
              n_category_out=self.n_train + self.n_test + 1,
              n_informative=1,
              n_features=1,
              contamination=self.contamination,
              random_state=self.random_state,
          )
  
      with assert_raises(ValueError):
          generate_data_categorical(
              n_train=self.n_train,
              n_test=self.n_test,
              n_category_in=5,
              n_category_out=5,
              n_informative=2,
              n_features=2,
              contamination=self.contamination,
              shuffle="not bool",
              random_state=self.random_state,
          )
  
imports: from __future__ import division
  from __future__ import print_function
  import os
  import sys
  import unittest
  import numpy
  from numpy.testing import assert_allclose
  from numpy.testing import assert_equal
  from numpy.testing import assert_raises
  from pyod.utils.data import generate_data_categorical
  from pyod.utils.data import generate_data
  from pyod.utils.data import evaluate_print
  from pyod.utils.data import get_outliers_inliers
  from pyod.utils.data import check_consistent_shape
  from pyod.utils.data import generate_data_clusters
label_desc: Use image node_id 13 for calling the TestData obj's underlying member method code with example usage: obj.test_data_generate_categorical5() without return types