code: def test_transfer_doc(self) -> None:
      @copy_doc(has_doc)
      # pyre-fixme[3]: Return type must be annotated.
      def inherits_doc():
          pass
  
      self.assertEqual(inherits_doc.__doc__, "I have a docstring")
  
file_path: Ax/ax/utils/common/tests/test_docutils.py
imports: from ax.utils.common.docutils import copy_doc
  from ax.utils.common.testutils import TestCase
label_desc: Use image node_id 1 for calling the TestDocUtils obj's underlying member method code with example usage: obj.test_transfer_doc() without return types