code: def assertSerializedOperatorChecks(
      self,
      inputs,
      outputs,
      gradient_operator,
      op,
      device_option,
      atol=1e-7,
      rtol=1e-7,
  ):
      if self.should_serialize:
          if getattr(_output_context, "should_generate_output", False):
              self.serialize_test(
                  inputs, outputs, gradient_operator, op, device_option
              )
              if not getattr(
                  _output_context, "disable_gen_coverage", False
              ):
                  coverage.gen_serialized_test_coverage(
                      self.get_output_dir(), TOP_DIR
                  )
          else:
              self.compare_test(
                  inputs, outputs, gradient_operator, atol, rtol
              )
  
imports: import inspect
  import os
  import shutil
  import sys
  import tempfile
  import threading
  from contextlib import contextmanager
  from zipfile import ZipFile
  import argparse
  import hypothesis
  import numpy
  import caffe2.python.hypothesis_test_util
  from caffe2.proto import caffe2_pb2
  from caffe2.python import gradient_checker
  from caffe2.python.serialized_test import coverage
label_desc: Use image node_id 6 for calling the SerializedTestCase obj's underlying member method code with example usage: obj.assertSerializedOperatorChecks(inputs, outputs, gradient_operator, op, device_option, atol, rtol) without return types