<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def _batch_key(self, query):
    '''
    Get a unique id from a query.
    '''
    return ''.join( ['%s%s'%(k,v) for k,v in sorted(query.items())] )