code: def test_openvino_quantize_output_tensors(self):
      model = mobilenet_v3_small(num_classes=10)
  
      x = torch.rand((10, 3, 256, 256))
      y = torch.ones((10,), dtype=torch.long)
  
      ds = TensorDataset(x, y)
      dataloader = DataLoader(ds, batch_size=2)
  
      openvino_model = InferenceOptimizer.quantize(
          model, accelerator="openvino", calib_data=dataloader
      )
      test_openvino_model = InferenceOptimizer.quantize(
          model,
          accelerator="openvino",
          calib_data=dataloader,
          output_tensors=False,
      )
      for x, y in dataloader:
          forward_model_tensor = openvino_model(x).numpy()
          forward_model_numpy = test_openvino_model(x)
          assert isinstance(forward_model_numpy, np.ndarray)
          np.testing.assert_almost_equal(
              forward_model_tensor, forward_model_numpy, decimal=5
          )
  
      with tempfile.TemporaryDirectory() as tmp_dir_name:
          InferenceOptimizer.save(openvino_model, tmp_dir_name)
          load_model = InferenceOptimizer.load(tmp_dir_name)
      with tempfile.TemporaryDirectory() as tmp_dir_name:
          InferenceOptimizer.save(test_openvino_model, tmp_dir_name)
          test_load_model = InferenceOptimizer.load(tmp_dir_name)
  
      for x, y in dataloader:
          forward_model_tensor = load_model(x).numpy()
          forward_model_numpy = test_load_model(x)
          assert isinstance(forward_model_numpy, np.ndarray)
          np.testing.assert_almost_equal(
              forward_model_tensor, forward_model_numpy, decimal=5
          )
  
imports: from unittest import TestCase
  from torchmetrics import F1Score
  from bigdl.nano.pytorch import Trainer
  from bigdl.nano.pytorch import InferenceOptimizer
  from torchvision.models.mobilenetv3 import mobilenet_v3_small
  from torchvision.models import resnet50
  import torch
  from torch import nn
  from torch.utils.data.dataset import TensorDataset
  from torch.utils.data.dataloader import DataLoader
  import tempfile
  import pytest
  import numpy
label_desc: Use image node_id 13 for calling the TestOpenVINO obj's underlying member method code with example usage: obj.test_openvino_quantize_output_tensors() without return types