code: def testAPIBackwardsCompatibilityV2(self):
      api_version = 2
      golden_file_patterns = [
          os.path.join(
              resource_loader.get_root_dir_with_all_resources(),
              _KeyToFilePath("*", api_version),
          ),
          _GetTFNumpyGoldenPattern(api_version),
      ]
      omit_golden_symbols_map = {}
      if FLAGS.only_test_core_api and not _TENSORBOARD_AVAILABLE:
          # In TF 2.0 these summary symbols are imported from TensorBoard.
          omit_golden_symbols_map["tensorflow.summary"] = [
              "audio",
              "histogram",
              "image",
              "scalar",
              "text",
          ]
      self._checkBackwardsCompatibility(
          tf.compat.v2,
          golden_file_patterns,
          api_version,
          additional_private_map={"tf.compat": ["v1", "v2"]},
          omit_golden_symbols_map=omit_golden_symbols_map,
      )
  
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 9 for calling the ApiCompatibilityTest obj's underlying member method code with example usage: obj.testAPIBackwardsCompatibilityV2() without return types