docstr: Use a model to predict for classes. By default, label predictions start from 0.
  
  # Arguments
  x: Prediction data. A Numpy array or RDD of Sample.
  batch_per_partition:
    The default value is 4.
    When distributed is True, the total batch size is batch_per_thread * rdd.getNumPartitions.
    When distributed is False the total batch size is batch_per_thread * numOfCores.
  zero_based_label: Boolean. Whether result labels start from 0.
                    Default is True. If False, result labels start from 1.
code: def predict_classes(
      self, x, batch_per_thread=4, zero_based_label=True
  ):
      """
      Use a model to predict for classes. By default, label predictions start from 0.
  
      # Arguments
      x: Prediction data. A Numpy array or RDD of Sample.
      batch_per_partition:
        The default value is 4.
        When distributed is True, the total batch size is batch_per_thread * rdd.getNumPartitions.
        When distributed is False the total batch size is batch_per_thread * numOfCores.
      zero_based_label: Boolean. Whether result labels start from 0.
                        Default is True. If False, result labels start from 1.
      """
      if isinstance(x, np.ndarray):
          data_rdd = to_sample_rdd(x, np.zeros([x.shape[0]]))
      elif isinstance(x, RDD):
          data_rdd = x
      else:
          invalidInputError(
              False, "Unsupported prediction data type: %s" % type(x)
          )
      return callZooFunc(
          self.bigdl_type,
          "zooPredictClasses",
          self.value,
          data_rdd,
          batch_per_thread,
          zero_based_label,
      )
  
imports: import bigdl.dllib.keras.autograd
  from bigdl.dllib.feature.image import ImageSet
  from bigdl.dllib.feature.text import TextSet
  from bigdl.dllib.feature.common import FeatureSet
  from bigdl.dllib.keras.base import ZooKerasLayer
  from bigdl.dllib.keras.utils import *
  from bigdl.dllib.nn.layer import Layer
  from bigdl.dllib.utils.file_utils import callZooFunc
label_desc: Use image node_id 19 for calling the KerasNet obj's underlying member method code with example usage: obj.predict_classes(x, batch_per_thread, zero_based_label) and returns: callZooFunc