code: def test_basic_example(self, capsys):
      py2md("scripts.tests.py2md.basic_example")
      captured = capsys.readouterr()
  
      with open(
          self.PROJECT_ROOT
          / "scripts"
          / "tests"
          / "py2md"
          / "basic_example_expected_output.md"
      ) as f:
          expected = f.read()
  
      assert captured.out.split("\n") == expected.split("\n")
  
file_path: allennlp/scripts/tests/py2md/py2md_test.py
imports: from typing import Optional
  import pytest
  from allennlp.common.testing import AllenNlpTestCase
  from scripts.py2md import py2md, Param, DocstringError
label_desc: Use image node_id 1 for calling the TestPy2md obj's underlying member method code with example usage: obj.test_basic_example(capsys) without return types