code: def test_get_real_func_partial() -> None:
      """Test get_real_func handles partial instances correctly"""
  
      def foo(x):
          return x
  
      assert get_real_func(foo) is foo
      assert get_real_func(partial(foo)) is foo
  
imports: import enum
  import sys
  from functools import cached_property
  from functools import partial
  from functools import wraps
  from typing import TYPE_CHECKING
  from typing import Union
  import pytest
  from _pytest.compat import _PytestWrapper
  from _pytest.compat import assert_never
  from _pytest.compat import get_real_func
  from _pytest.compat import is_generator
  from _pytest.compat import safe_getattr
  from _pytest.compat import safe_isclass
  from _pytest.outcomes import OutcomeException
  from _pytest.pytester import Pytester
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_real_func_partial() and returns: x