code: def prepare(self, features, examples, batchsize):
      if features > self._max_features:
          raise ValueError(
              "features must be lower than max_features (%d)"
              % self._max_features
          )
  
      if examples > self._max_examples:
          raise ValueError(
              "examples must be lower than max_examples (%d)"
              % self._max_examples
          )
  
      if examples % batchsize != 0:
          raise ValueError("batchsize must be a divider of examples")
  
      self._features = features
      self._examples = examples
      self._batchsize = batchsize
  
file_path: tfdeploy/tests/perf/measure_runtimes.py
imports: import os
  import time
  import json
  import uuid
  import itertools
  import collections
  import numpy
  import tensorflow
  import tfdeploy
label_desc: Use image node_id 2 for calling the Data obj's underlying member method code with example usage: obj.prepare(features, examples, batchsize) without return types