class_docstr: Tests assertProtoEqual().
code: def testCheckInitialized(self):
      # neither is initialized
      a = compare_test_pb2.Labeled(optional=1)
      self.assertNone(
          a, a, "Initialization errors: ", check_initialized=True
      )
      self.assertAll(a, check_initialized=False)
  
      # a is initialized, b isn't
      b = copy.deepcopy(a)
      a.required = 2
      self.assertNone(
          a, b, "Initialization errors: ", check_initialized=True
      )
      self.assertNone(
          a,
          b,
          """
                      - required: 2
                        optional: 1
                      """,
          check_initialized=False,
      )
  
      # both are initialized
      a = compare_test_pb2.Labeled(required=2)
      self.assertAll(a, check_initialized=True)
      self.assertAll(a, check_initialized=False)
  
      b = copy.deepcopy(a)
      b.required = 3
      message = """
                - required: 2
                ?           ^
                + required: 3
                ?           ^
                """
      self.assertNone(a, b, message, check_initialized=True)
      self.assertNone(a, b, message, check_initialized=False)
  
imports: import copy
  import re
  import sys
  import textwrap
  from google.protobuf import text_format
  from tensorflow.python.platform import googletest
  from tensorflow.python.util.protobuf import compare
  from tensorflow.python.util.protobuf import compare_test_pb2
label_desc: Use image node_id 5 for calling the AssertTest obj's underlying member method code with example usage: obj.testCheckInitialized() without return types