docstr: Record any information needed by transform.
docstr_tok: ["Record","any","information","needed","by","transform","."]
code: def check(self, x):
      """Record any information needed by transform."""
      if not isinstance(x, (np.ndarray, tf.data.Dataset)):
          raise TypeError(
              "Expect the data to ImageInput to be numpy.ndarray or "
              "tf.data.Dataset, but got {type}.".format(type=type(x))
          )
      if isinstance(x, np.ndarray) and not np.issubdtype(
          x.dtype, np.number
      ):
          raise TypeError(
              "Expect the data to ImageInput to be numerical, but got "
              "{type}.".format(type=x.dtype)
          )
  
imports: import numpy
  import pandas
  import tensorflow
  from autokeras.engine import adapter
label_desc: Use image node_id 1 for calling the ImageAdapter obj's underlying member method code with example usage: obj.check(x) without return types