def METHOD_NAME(benchmark, with_fraction, with_tz):
    if with_fraction:
        if with_tz:
            date_str = DATE_WITH_FRACTION_AND_TZ_STR
            expected_result = EXPECTED_RESULT_WITH_FRACTION_AND_TZ_DT
        else:
            date_str = DATE_WITH_FRACTION_STR
            expected_result = EXPECTED_RESULT_WITH_FRACTION_DT
    else:
        if with_tz:
            date_str = DATE_WITHOUT_FRACTION_WITH_TZ_STR
            expected_result = EXPECTED_RESULT_WITHOUT_FRACTION_WITH_TZ_DT
            pass
        else:
            date_str = DATE_WITHOUT_FRACTION_STR
            expected_result = EXPECTED_RESULT_WITHOUT_FRACTION_DT
    def run_benchmark():
        result = _rfc3339_to_datetime_udatetime(date_str)
        return result
    result = benchmark.pedantic(run_benchmark, iterations=200, rounds=200)
    assert result == expected_result