code: def test_function_instance(pytester: Pytester) -> None:
      items = pytester.getitems(
          """
          def test_func(): pass
          class TestIt:
              def test_method(self): pass
              @classmethod
              def test_class(cls): pass
              @staticmethod
              def test_static(): pass
          """
      )
      assert len(items) == 4
      assert isinstance(items[0], Function)
      assert items[0].name == "test_func"
      assert items[0].instance is None
      assert isinstance(items[1], Function)
      assert items[1].name == "test_method"
      assert items[1].instance is not None
      assert items[1].instance.__class__.__name__ == "TestIt"
      assert isinstance(items[3], Function)
      assert items[3].name == "test_static"
      assert items[3].instance is None
  
imports: import pytest
  from _pytest._code import getfslineno
  from _pytest.fixtures import getfixturemarker
  from _pytest.pytester import Pytester
  from _pytest.python import Function
label_desc: Use image node_id 3 for calling a global function with example usage: test_function_instance(pytester) without return types