class_docstr: Tests for KafkaDataset.
docstr: Tests for KafkaDataset worng global configuration properties.
docstr_tok: ["Tests","for","KafkaDataset","worng","global","configuration","properties","."]
code: def test_kafka_wrong_global_configuration_failed(self):
      """Tests for KafkaDataset worng global configuration properties."""
      tf.compat.v1.disable_eager_execution()
  
      import tensorflow_io.kafka as kafka_io  # pylint: disable=wrong-import-position
  
      topics = tf.compat.v1.placeholder(tf.dtypes.string, shape=[None])
      num_epochs = tf.compat.v1.placeholder(tf.dtypes.int64, shape=[])
  
      # Add wrong configuration
      wrong_cfg = ["debug=al"]
      repeat_dataset = kafka_io.KafkaDataset(
          topics, group="test", eof=True, config_global=wrong_cfg
      ).repeat(num_epochs)
  
      iterator = tf.compat.v1.data.Iterator.from_structure(
          repeat_dataset.output_types
      )
      init_op = iterator.make_initializer(repeat_dataset)
      get_next = iterator.get_next()
  
      with self.cached_session() as sess:
          sess.run(
              init_op, feed_dict={topics: ["test:0:0:4"], num_epochs: 1}
          )
          with self.assertRaises(tf.errors.InternalError):
              sess.run(get_next)
  
file_path: io/tests/test_kafka_v1.py
imports: import time
  import pytest
  import tensorflow
label_desc: Use image node_id 5 for calling the KafkaDatasetTest obj's underlying member method code with example usage: obj.test_kafka_wrong_global_configuration_failed() without return types