code: def checkExportImport(
      self, model, input, check_value=True, strict_load=True
  ):
      model_ir = self._convert_model(model, input)
      converted_model = model_ir.executable_model()
  
      with original_state_dict_hooks(converted_model):
          converted_model.load_state_dict(
              model.state_dict(), strict=strict_load
          )
  
      with torch.no_grad():
          expected_output = model.eval()(*input)
          converted_output = converted_model.eval()(*input)
      if check_value:
          if isinstance(expected_output, (list, tuple)):
              for e, c in zip(expected_output, converted_output):
                  self.assertTrue(
                      self.tensor_equal(e, c), msg=f"{e} != {c}"
                  )
          else:
              self.assertTrue(
                  self.tensor_equal(expected_output, converted_output),
                  msg=f"{expected_output} != {converted_output}",
              )
      return converted_model
  
file_path: nni/test/algo/nas/graph_converter/convert_mixin.py
imports: import unittest
  import torch
  from nni.nas.space.pytorch.graph import PytorchGraphModelSpace
  from nni.nas.utils import original_state_dict_hooks
label_desc: Use image node_id 2 for calling the ConvertMixin obj's underlying member method code with example usage: obj.checkExportImport(model, input, check_value, strict_load) and returns: converted_model