<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def atexit_rmglob(path, glob=glob.glob, isdir=os.path.isdir, isfile=os.path.isfile, remove=os.remove, rmtree=shutil.rmtree):
 # pragma: no cover """Ensure removal of multiple files at interpreter exit."""

    for p in glob(path):
        if isfile(p):
            remove(p)
        elif isdir(p):
            rmtree(p)