def METHOD_NAME(test_data):
    if 'measurements' in test_data:
        lava_test_set_start(test_data['name'])
        for measurement in test_data['measurements']:
            report_lava_test_case(measurement['name'],
                                  test_data['result'],
                                  measurement)
        lava_test_set_stop(test_data['name'])
    else:
        report_lava_test_case(test_data['name'],
                              test_data['result'])