def METHOD_NAME(range_value):
    range_value = range_value.upper()
    if TimeUTC.RANGE_VALUE is None:
        this_instant = TimeUTC.now()
        TimeUTC.RANGE_VALUE = {
            "TODAY": {"start": TimeUTC.midnight(), "end": this_instant},
            "YESTERDAY": {"start": TimeUTC.midnight(delta_days=-1), "end": TimeUTC.midnight()},
            "LAST_7_DAYS": {"start": TimeUTC.midnight(delta_days=-7), "end": this_instant},
            "LAST_30_DAYS": {"start": TimeUTC.midnight(delta_days=-30), "end": this_instant},
            "THIS_MONTH": {"start": TimeUTC.month_start(), "end": this_instant},
            "LAST_MONTH": {"start": TimeUTC.month_start(delta_month=-1), "end": TimeUTC.month_start()},
            "THIS_YEAR": {"start": TimeUTC.year_start(), "end": this_instant},
            "CUSTOM_RANGE": {"start": TimeUTC.midnight(delta_days=-7), "end": this_instant}  # Default is 7 days
        }
    return TimeUTC.RANGE_VALUE[range_value]["start"], TimeUTC.RANGE_VALUE[range_value]["end"]