code: def test_sessionfinish_with_start(pytester: Pytester) -> None:
      pytester.makeconftest(
          """
          import os
          values = []
          def pytest_sessionstart():
              values.append(os.getcwd())
              os.chdir("..")
  
          def pytest_sessionfinish():
              assert values[0] == os.getcwd()
  
      """
      )
      res = pytester.runpytest("--collect-only")
      assert res.ret == ExitCode.NO_TESTS_COLLECTED
  
imports: import pytest
  from _pytest.config import ExitCode
  from _pytest.monkeypatch import MonkeyPatch
  from _pytest.pytester import Pytester
label_desc: Use image node_id 6 for calling a global function with example usage: test_sessionfinish_with_start(pytester) without return types