<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def temp_dir(remover=shutil.rmtree):
 	""" 	Create a temporary directory context. Pass a custom remover 	to override the removal behavior. 	"""

	temp_dir = tempfile.mkdtemp()
	try:
		yield temp_dir
	finally:
		remover(temp_dir)