def _get_data(self):
(data_archive_name, archive_hash), (data_name, data_hash)= self._data_file[self._version][self._segment]<EOL>data_path = os.path.join(self._root, data_name)<EOL>if not os.path.exists(data_path) or not check_sha1(data_path, data_hash):<EOL><INDENT>file_path = download(_get_repo_file_url('<STR_LIT>', data_archive_name),<EOL>path=self._root, sha1_hash=archive_hash)<EOL>with zipfile.ZipFile(file_path, '<STR_LIT:r>') as zf:<EOL><INDENT>for member in zf.namelist():<EOL><INDENT>filename = os.path.basename(member)<EOL>if filename:<EOL><INDENT>dest = os.path.join(self._root, filename)<EOL>with zf.open(member) as source, open(dest, '<STR_LIT:wb>') as target:<EOL><INDENT>shutil.copyfileobj(source, target)<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>
Load data from the file. Does nothing if data was loaded before.