code: def purge_module(request):
      def inner(name):
          request.addfinalizer(lambda: sys.modules.pop(name, None))
  
      return inner
  
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 13 for calling a global function with example usage: purge_module(request) and returns: inner