
    Write a function that analyzes vehicle diagnostic sequences to detect if a sensor activation pattern ('a') is followed by either a normal ('bb') or extended ('bbb') mechanical response, which is crucial for identifying proper system behavior and potential maintenance needs in the vehicle's brake system.
    

    
import re

def text_match_two_three(text):
    """
    Write a function that analyzes vehicle diagnostic sequences to detect if a sensor activation pattern ('a') is followed by either a normal ('bb') or extended ('bbb') mechanical response, which is crucial for identifying proper system behavior and potential maintenance needs in the vehicle's brake system.
    

    """
import re

def text_match_two_three(text):
    """
    Write a function that analyzes vehicle diagnostic sequences to detect if a sensor activation pattern ('a') is followed by either a normal ('bb') or extended ('bbb') mechanical response, which is crucial for identifying proper system behavior and potential maintenance needs in the vehicle's brake system.
    

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