def eval_stats(values, mode):
if mode == '<STR_LIT>':<EOL><INDENT>return values.tolist()<EOL><DEDENT>if mode == '<STR_LIT>':<EOL><INDENT>mode = '<STR_LIT>'<EOL><DEDENT>try:<EOL><INDENT>return getattr(np, mode)(values, axis=<NUM_LIT:0>)<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT>return None<EOL>
Extract a summary statistic from an array of list of values

    Parameters:
        values: numpy array of values
        mode: summary stat to extract. One of ['min', 'max', 'median', 'mean', 'std', 'raw']

    Note: fails silently if values is empty, and None is returned