
    Write a function that analyzes a delivery vehicle's status code to determine if it shows an active vehicle ('a') followed by either moderate ('bb') or severe ('bbb') traffic conditions. The status code follows a standardized format where 'a' indicates an active vehicle state and subsequent 'b' characters represent increasing levels of traffic congestion.
    

    
import re

def text_match_two_three(text):
    """
    Write a function that analyzes a delivery vehicle's status code to determine if it shows an active vehicle ('a') followed by either moderate ('bb') or severe ('bbb') traffic conditions. The status code follows a standardized format where 'a' indicates an active vehicle state and subsequent 'b' characters represent increasing levels of traffic congestion.
    

    """
import re

def text_match_two_three(text):
    """
    Write a function that analyzes a delivery vehicle's status code to determine if it shows an active vehicle ('a') followed by either moderate ('bb') or severe ('bbb') traffic conditions. The status code follows a standardized format where 'a' indicates an active vehicle state and subsequent 'b' characters represent increasing levels of traffic congestion.
    

    """
    patterns = 'ab{2,3}'
    if re.search(patterns, text):
        return True
    else:
        return False