def METHOD_NAME():
    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument('--log_year', default=_CURRENT_YEAR,
                        help=('Year in which the log was created. '
                              'Needed because the year is omitted in the log.'))
    parser.add_argument('--after',
                        help=('Show tests which ended at or after this time '
                              '(format: %s).' % _DATE_FORMAT.replace('%', '%%')))
    parser.add_argument('--before',
                        help=('Show tests which started at or before this time '
                              '(format: %s).' % _DATE_FORMAT.replace('%', '%%')))
    parser.add_argument('file')
    args = parser.parse_args()
    after = datetime.datetime.strptime(args.after, _DATE_FORMAT) if args.after else None
    before = datetime.datetime.strptime(args.before, _DATE_FORMAT) if args.before else None
    if after and before and after.year != before.year:
        raise Exception('Logs spanning year boundary are not supported.')
    if not args.log_year and (after or before):
        year = after.year if after else before.year
        if year != _CURRENT_YEAR:
            raise Exception('Please explicitly specify the year in which the log was created.')
    with open(args.file) as log:
        for test in _get_tests(log):
            if test.overlaps(after, before):
                print(str(test))