docs: 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)