docstr: Evaluate a model on a given dataset in distributed mode.
  
  # Arguments
  x: Evaluation data. A Numpy array or RDD of Sample or ImageSet or TextSet.
  y: Labels. A Numpy array.
     Default is None if x is already Sample RDD or ImageSet or TextSet.
  batch_size: Number of samples per batch. Default is 32.
docstr_tok: ["Evaluate","a","model","on","a","given","dataset","in","distributed","mode",".","#","Arguments","x",":","Evaluation","data",".","A","Numpy","array","or","RDD","of","Sample","or","ImageSet","or","TextSet",".","y",":","Labels",".","A","Numpy","array",".","Default","is","None","if","x","is","already","Sample","RDD","or","ImageSet","or","TextSet",".","batch_size",":","Number","of","samples","per","batch",".","Default","is","32","."]
code: def evaluate(self, x, y=None, batch_size=32):
      """
      Evaluate a model on a given dataset in distributed mode.
  
      # Arguments
      x: Evaluation data. A Numpy array or RDD of Sample or ImageSet or TextSet.
      y: Labels. A Numpy array.
         Default is None if x is already Sample RDD or ImageSet or TextSet.
      batch_size: Number of samples per batch. Default is 32.
      """
      if isinstance(x, np.ndarray) and isinstance(y, np.ndarray):
          data = to_sample_rdd(x, y)
      elif (
          isinstance(x, RDD)
          or isinstance(x, ImageSet)
          or isinstance(x, TextSet)
      ) and not y:
          data = x
      else:
          raise TypeError(
              "Unsupported evaluation data type: %s" % type(x)
          )
      return callZooFunc(
          self.bigdl_type, "zooEvaluate", self.value, data, batch_size
      )
  
imports: import zoo.pipeline.api.autograd
  from zoo.feature.image import ImageSet
  from zoo.feature.text import TextSet
  from zoo.feature.common import FeatureSet
  from zoo.pipeline.api.keras.base import ZooKerasLayer
  from zoo.pipeline.api.keras.utils import *
  from bigdl.nn.layer import Layer
  from zoo.common.utils import callZooFunc
label_desc: Use image node_id 13 for calling the KerasNet obj's underlying member method code with example usage: obj.evaluate(x, y, batch_size) and returns: callZooFunc