code: def test_check_tensor_mismatched_field(self) -> None:
      tensor = self._sample_float_tensor
      tensor.data_type = TensorProto.INT32
      self.assertRaises(
          checker.ValidationError, checker.check_tensor, tensor
      )
  
imports: import os
  import tempfile
  import unittest
  from typing import Sequence
  import numpy
  import onnx.defs
  import onnx.parser
  from onnx import GraphProto, SparseTensorProto, TensorProto, checker, helper, numpy_helper, shape_inference
label_desc: Use image node_id 20 for calling the TestChecker obj's underlying member method code with example usage: obj.test_check_tensor_mismatched_field() without return types