code: def test_load_dotenv(monkeypatch):
      # can't use monkeypatch.delitem since the keys don't exist yet
      for item in ("FOO", "BAR", "SPAM", "HAM"):
          monkeypatch._setitem.append((os.environ, item, notset))
  
      monkeypatch.setenv("EGGS", "3")
      monkeypatch.chdir(test_path)
      assert load_dotenv()
      assert Path.cwd() == test_path
      # .flaskenv doesn't overwrite .env
      assert os.environ["FOO"] == "env"
      # set only in .flaskenv
      assert os.environ["BAR"] == "bar"
      # set only in .env
      assert os.environ["SPAM"] == "1"
      # set manually, files don't overwrite
      assert os.environ["EGGS"] == "3"
      # test env file encoding
      assert os.environ["HAM"] == "火腿"
      # Non existent file should not load
      assert not load_dotenv("non-existent-file")
  
imports: import importlib.metadata
  import os
  import platform
  import ssl
  import sys
  import types
  from functools import partial
  from pathlib import Path
  import click
  import pytest
  from _pytest.monkeypatch import notset
  from click.testing import CliRunner
  from flask import Blueprint
  from flask import current_app
  from flask import Flask
  from flask.cli import AppGroup
  from flask.cli import find_best_app
  from flask.cli import FlaskGroup
  from flask.cli import get_version
  from flask.cli import load_dotenv
  from flask.cli import locate_app
  from flask.cli import NoAppException
  from flask.cli import prepare_import
  from flask.cli import run_command
  from flask.cli import ScriptInfo
  from flask.cli import with_appcontext
label_desc: Use image node_id 20 for calling a global function with example usage: test_load_dotenv(monkeypatch) without return types