code: def test_eof_newline():
      def assert_issue(code):
          found = issues(code)
          assert len(found) == 1
          (issue,) = found
          assert issue.code == 292
  
      assert not issues("asdf = 1\n")
      assert_issue("asdf = 1")
      assert_issue("asdf = 1\n# foo")
      assert_issue("# foobar")
      assert_issue("")
      assert_issue("foo = 1  # comment")
  
imports: import parso
label_desc: Use image node_id 2 for calling a global function with example usage: test_eof_newline() without return types