def create_temp_directory(self, **mkdtemp_kwargs) -> str:
kwargs = {**self.default_mkdtemp_kwargs, **mkdtemp_kwargs}<EOL>location = tempfile.mkdtemp(**kwargs)<EOL>self._temp_directories.add(location)<EOL>return location<EOL>
Creates a temp directory.
:param mkdtemp_kwargs: named arguments to be passed to `tempfile.mkdtemp`
:return: the location of the temp directory