code: def test_code_from_func() -> None:
      co = Code.from_function(test_frame_getsourcelineno_myself)
      assert co.firstlineno
      assert co.path
  
imports: import re
  import sys
  from types import FrameType
  from unittest import mock
  import pytest
  from _pytest._code import Code
  from _pytest._code import ExceptionInfo
  from _pytest._code import Frame
  from _pytest._code import Source
  from _pytest._code.code import ExceptionChainRepr
  from _pytest._code.code import ReprFuncArgs
label_desc: Use image node_id 9 for calling a global function with example usage: test_code_from_func() without return types