def get_state_batch(keys, namespace=None, consistent=True):
ukeys = set(keys)<EOL>if namespace:<EOL><INDENT>ns_keys = ["<STR_LIT>".format(namespace, key) for key in ukeys]<EOL><DEDENT>uvalues = {k: v for k, v<EOL>in zip(ukeys, get_item_batch(ns_keys, consistent=consistent))}<EOL>return list(zip(keys, (uvalues[k] for k in keys)))<EOL>
Get a batch of items from the state store.