code: def testSummaryMerged(self):
      # pylint: disable=pointless-statement
      tf.summary.image
      # If we use v2 API, check for create_file_writer,
      # otherwise check for FileWriter.
      if (
          hasattr(tf, "_major_api_version")
          and tf._major_api_version == 2
      ):
          tf.summary.create_file_writer
      else:
          tf.compat.v1.summary.FileWriter
  
file_path: tensorflow/tensorflow/tools/api/tests/module_test.py
imports: import pkgutil
  import tensorflow
  from tensorflow.python import tf2
  from tensorflow.python.platform import test
label_desc: Use image node_id 7 for calling the ModuleTest obj's underlying member method code with example usage: obj.testSummaryMerged() without return types