code: def test_ModuleAnalyzer_for_string():
      analyzer = ModuleAnalyzer.for_string(
          'print("Hello world")', "module_name"
      )
      assert analyzer.modname == "module_name"
      assert analyzer.srcname == "<string>"
  
file_path: sphinx/tests/test_pycode/test_pycode.py
imports: import os
  import sys
  import pytest
  import sphinx
  from sphinx.errors import PycodeError
  from sphinx.pycode import ModuleAnalyzer
label_desc: Use image node_id 2 for calling a global function with example usage: test_ModuleAnalyzer_for_string() without return types