def _log_key(match):
 return tuple(((k, v) for (k, v) in sorted(match.items()) if (k not in ('log_type', 'path'))))

def _log_key ( match ) : return tuple ( ( ( k , v ) for ( k , v ) in sorted ( match . items ( ) ) if ( k not in ( 'log_type' , 'path' ) ) ) )
helper method for _ls_task_logs() and _ls_spark_task_logs() .