def get_sample():
 sample_output = check_output([NODE_TOOL, 'rangekeysample'])
 keys = [{'key': key.strip().decode('hex'), 'size': 0} for key in sample_output.splitlines()[1:]]
 sorted(keys, key=(lambda key: key['key']))
 return keys

def get_sample ( ) : sample_output = check_output ( [ NODE_TOOL , 'rangekeysample' ] ) keys = [ { 'key' : key . strip ( ) . decode ( 'hex' ) , 'size' : 0 } for key in sample_output . splitlines ( ) [ 1 : ] ] sorted ( keys , key = ( lambda key : key [ 'key' ] ) ) return keys
helper method to access created sample data for primitive types .