code: def test_model_trace_openvino(self):
      model = MobileNetV2(
          weights=None, input_shape=[40, 40, 3], classes=10
      )
      model = Model(inputs=model.inputs, outputs=model.outputs)
      train_examples = np.random.random((100, 40, 40, 3))
      train_labels = np.random.randint(0, 10, size=(100,))
      train_dataset = tf.data.Dataset.from_tensor_slices(
          (train_examples, train_labels)
      ).batch(2)
  
      # trace a Keras model
      openvino_model = InferenceOptimizer.trace(
          model, accelerator="openvino", thread_num=4
      )
      y_hat = openvino_model(train_examples[:10])
      assert y_hat.shape == (10, 10)
  
      y_hat = openvino_model.predict(train_examples, batch_size=5)
      assert y_hat.shape == (100, 10)
  
      openvino_model.compile(
          metrics=[tf.keras.metrics.CategoricalAccuracy()]
      )
      acc = openvino_model.evaluate(train_dataset, return_dict=True)[
          "categorical_accuracy"
      ]
  
      # trace a Keras model with config
      openvino_model = InferenceOptimizer.trace(
          model,
          accelerator="openvino",
          openvino_config={"PERFORMANCE_HINT": "LATENCY"},
      )
      y_hat = openvino_model(train_examples[:10])
      assert y_hat.shape == (10, 10)
  
      # trace a Keras model with kargs
      openvino_model = InferenceOptimizer.trace(
          model,
          accelerator="openvino",
          thread_num=4,
          mean_value=[123.68, 116.78, 103.94],
      )  # mo param
      y_hat = openvino_model(train_examples[:10])
      assert y_hat.shape == (10, 10)
  
file_path: BigDL/python/nano/test/openvino/tf/test_openvino.py
imports: from unittest import TestCase
  import tensorflow
  from tensorflow.keras.applications.mobilenet_v2 import MobileNetV2
  import numpy
  from bigdl.nano.tf.keras import Model, InferenceOptimizer
  import tempfile
  from bigdl.nano.deps.openvino.tf.model import KerasOpenVINOModel
label_desc: Use image node_id 1 for calling the TestOpenVINO obj's underlying member method code with example usage: obj.test_model_trace_openvino() without return types