class_docstr: Tests PyTorch and Tensorflow model imports
docstr: Checks that exported model returns the same results as crypten model
docstr_tok: ["Checks","that","exported","model","returns","the","same","results","as","crypten","model"]
code: def _check_model_export(self, crypten_model, x_enc):
      """Checks that exported model returns the same results as crypten model"""
      pytorch_model = crypten_model.decrypt().to_pytorch()
      x_plain = x_enc.get_plain_text()
  
      y_plain = pytorch_model(x_plain)
      crypten_model.encrypt()
      y_enc = crypten_model(x_enc)
  
      self._check(y_enc, y_plain, msg="Model export failed.")
  
imports: import collections
  import io
  import logging
  import os
  import unittest
  import crypten
  import torch
  from crypten.common.tensor_types import is_float_tensor
  from crypten.config import cfg
  from crypten.nn import onnx_converter
  from test.multiprocess_test_case import get_random_test_tensor, MultiProcessTestCase, onehot
label_desc: Use image node_id 8 for calling the TestOnnxConverter obj's underlying member method code with example usage: obj._check_model_export(crypten_model, x_enc) without return types