code: def testNoSubclassOfMessageV1(self):
      if not hasattr(tf.compat, "v1"):
          return
      visitor = public_api.PublicAPIVisitor(
          _VerifyNoSubclassOfMessageVisitor
      )
      visitor.do_not_descend_map["tf"].append("contrib")
      if FLAGS.only_test_core_api:
          visitor.do_not_descend_map["tf"].extend(_NON_CORE_PACKAGES)
      visitor.private_map["tf.compat"] = ["v1", "v2"]
      traverse.traverse(tf.compat.v1, visitor)
  
imports: import argparse
  import os
  import re
  import sys
  import tensorflow
  from google.protobuf import message
  from google.protobuf import text_format
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.platform import resource_loader
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
  from tensorflow.tools.api.lib import api_objects_pb2
  from tensorflow.tools.api.lib import python_object_to_proto_visitor
  from tensorflow.tools.common import public_api
  from tensorflow.tools.common import traverse
label_desc: Use image node_id 4 for calling the ApiCompatibilityTest obj's underlying member method code with example usage: obj.testNoSubclassOfMessageV1() without return types