code: def modules_tmp_path(tmp_path, monkeypatch):
      """A temporary directory added to sys.path."""
      rv = tmp_path / "modules_tmp"
      rv.mkdir()
      monkeypatch.syspath_prepend(os.fspath(rv))
      return rv
  
file_path: flask/tests/conftest.py
imports: import os
  import pkgutil
  import sys
  import pytest
  from _pytest import monkeypatch
  from flask import Flask
  from flask.globals import request_ctx
label_desc: Use image node_id 10 for calling a global function with example usage: modules_tmp_path(tmp_path, monkeypatch) and returns: rv