code: def testHaveDocstringOrDocstringModule(self):
      for module_name, docsrc in doc_srcs.get_doc_sources(
          FLAGS.api_name
      ).items():
          self.assertFalse(
              docsrc.docstring and docsrc.docstring_module_name,
              msg=(
                  "%s contains DocSource has both a docstring and a "
                  'docstring_module_name. Only one of "docstring" or '
                  '"docstring_module_name" should be set.'
              )
              % (module_name),
          )
  
file_path: tensorflow-upstream/tensorflow/python/tools/api/generator/doc_srcs_test.py
imports: import argparse
  import importlib
  import sys
  from tensorflow.python.platform import test
  from tensorflow.python.tools.api.generator import doc_srcs
label_desc: Use image node_id 2 for calling the DocSrcsTest obj's underlying member method code with example usage: obj.testHaveDocstringOrDocstringModule() without return types