code: def _VerifyNoSubclassOfMessageVisitor(path, parent, unused_children):
      """A Visitor that crashes on subclasses of generated proto classes."""
      # If the traversed object is a proto Message class
      if not (
          isinstance(parent, type)
          and issubclass(parent, message.Message)
      ):
          return
      if parent is message.Message:
          return
      # Check that it is a direct subclass of Message.
      if message.Message not in parent.__bases__:
          raise NotImplementedError(
              "Object tf.%s is a subclass of a generated proto Message. "
              "They are not yet supported by the API tools." % path
          )
  
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 a global function with example usage: _VerifyNoSubclassOfMessageVisitor(path, parent, unused_children) without return types