def _unzip_file(filepath):
temp_dir = tempfile.mkdtemp()<EOL>if os.name == '<STR_LIT>':<EOL><INDENT>os.chmod(temp_dir, <NUM_LIT>)<EOL><DEDENT>LOG.info("<STR_LIT>", filepath)<EOL>unzip(filepath, temp_dir)<EOL>return os.path.realpath(temp_dir)<EOL>
Helper method to unzip a file to a temporary directory

:param string filepath: Absolute path to this file
:return string: Path to the temporary directory where it was unzipped