code: def test_syspath_prepend(mp: MonkeyPatch) -> None:
      old = list(sys.path)
      mp.syspath_prepend("world")
      mp.syspath_prepend("hello")
      assert sys.path[0] == "hello"
      assert sys.path[1] == "world"
      mp.undo()
      assert sys.path == old
      mp.undo()
      assert sys.path == old
  
imports: import os
  import re
  import sys
  import textwrap
  from pathlib import Path
  from typing import Dict
  from typing import Generator
  from typing import Type
  import pytest
  from _pytest.monkeypatch import MonkeyPatch
  from _pytest.pytester import Pytester
label_desc: Use image node_id 12 for calling a global function with example usage: test_syspath_prepend(mp) without return types