def extract_meta(total):
 return {'features': {'total': total.features_ran, 'success': total.features_passed, 'failures': (total.features_ran - total.features_passed)}, 'scenarios': {'total': total.scenarios_ran, 'success': total.scenarios_passed, 'failures': (total.scenarios_ran - total.scenarios_passed)}, 'steps': {'total': total.steps, 'success': total.steps_passed, 'failures': total.steps_failed, 'skipped': total.steps_skipped, 'undefined': total.steps_undefined}, 'is_success': total.is_success}

def extract_meta ( total ) : return { 'features' : { 'total' : total . features_ran , 'success' : total . features_passed , 'failures' : ( total . features_ran - total . features_passed ) } , 'scenarios' : { 'total' : total . scenarios_ran , 'success' : total . scenarios_passed , 'failures' : ( total . scenarios_ran - total . scenarios_passed ) } , 'steps' : { 'total' : total . steps , 'success' : total . steps_passed , 'failures' : total . steps_failed , 'skipped' : total . steps_skipped , 'undefined' : total . steps_undefined } , 'is_success' : total . is_success }
extract metadata from the totalresult .