<s> import gzip <EOL> from . . utils . data_utils import get_file <EOL> from six . moves import cPickle <EOL> import sys <EOL> def load_data ( path = "<STR_LIT>" ) : <EOL> path = get_file ( path , origin = "<STR_LIT>" ) <EOL> if path . endswith ( "<STR_LIT>" ) : <EOL> f = gzip . open ( path , '<STR_LIT:rb>' ) <EOL> else : <EOL> f = open ( path , '<STR_LIT:rb>' ) <EOL> if sys . version_info < ( <NUM_LIT:3> , ) : <EOL> data = cPickle . load ( f ) <EOL> else : <EOL> data = cPickle . load ( f , encoding = "<STR_LIT>" ) <EOL> f . close ( ) <EOL> return data </s>
