<s> import cassiopeia . type . core . common <EOL> import cassiopeia . type . api . store <EOL> load_policy = cassiopeia . type . core . common . LoadPolicy . eager <EOL> data_store = cassiopeia . type . api . store . Cache ( ) <EOL> def call_with_ensured_size ( method , max_size , arg ) : <EOL> """<STR_LIT>""" <EOL> if not isinstance ( arg , list ) or len ( arg ) <= max_size : <EOL> return method ( arg ) <EOL> results = method ( arg [ <NUM_LIT:0> : max_size ] ) <EOL> i = max_size <EOL> if isinstance ( results , list ) : <EOL> while ( i < len ( arg ) ) : <EOL> sublist = arg [ i : i + max_size ] <EOL> results = results + method ( sublist ) <EOL> i += max_size <EOL> elif isinstance ( results , dict ) : <EOL> while ( i < len ( arg ) ) : <EOL> sublist = arg [ i : i + max_size ] <EOL> results . update ( method ( sublist ) ) <EOL> i += max_size <EOL> return results </s>
