def set_limits_for_pool(self, pool, **kw):
pool_limits = {}<EOL>for time_period in ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>if time_period not in kw:<EOL><INDENT>continue<EOL><DEDENT>limit = kw.pop(time_period)<EOL>if limit is not None and not isinstance(limit, (float, int)):<EOL><INDENT>raise TypeError("<STR_LIT>",<EOL>time_period)<EOL><DEDENT>pool_limits[time_period] = limit<EOL><DEDENT>if kw:<EOL><INDENT>raise ValueError("<STR_LIT>" %<EOL>"<STR_LIT:U+002CU+0020>".join(kw.keys()))<EOL><DEDENT>self.cache.set("<STR_LIT>" % pool, json_dumps(pool_limits))<EOL>return<EOL>
meterer.set_limits_for_pool(pool, [time_period=value])

Sets the limits for the given pool. The valid time_periods are:
year, month, week, day, hour.