code: def _validate_mushroom_data(numpy_data):
      """Checks if the numpy array looks like the mushroom dataset.
  
      Args:
        numpy_data: numpy array of rank 2 consisting of single characters. It should
          contain the mushroom dataset with each column being a feature and each row
          being a sample.
      """
      assert (
          numpy_data.shape[1] == 23
      ), "The dataset should have 23 columns."
      assert set(numpy_data[:, 0]) == {
          "e",
          "p",
      }, "The first column should be the label with values `e` and `p`."
  
file_path: agents/tf_agents/bandits/environments/dataset_utilities.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import csv
  import gin
  import numpy
  from six.moves import range
  from six.moves import zip
  import tensorflow
  import tensorflow_probability
label_desc: Use image node_id 1 for calling a global function with example usage: _validate_mushroom_data(numpy_data) without return types