code: def check(self, dataset):
      supported_types = (
          tf.data.Dataset,
          np.ndarray,
          pd.DataFrame,
          pd.Series,
      )
      if not isinstance(dataset, supported_types):
          raise TypeError(
              f"Expect the target data of {self.name} to be tf.data.Dataset,"
              f" np.ndarray, pd.DataFrame or pd.Series, "
              f"but got {type(dataset)}."
          )
  
file_path: autokeras/autokeras/adapters/output_adapters.py
imports: import numpy
  import pandas
  import tensorflow
  from autokeras.engine import adapter
label_desc: Use image node_id 2 for calling the HeadAdapter obj's underlying member method code with example usage: obj.check(dataset) without return types