```python
import re

def text_match_two_three(text):
    """
    Matches a string that has an 'a' followed by two to three 'b's.
    """
    # The pattern 'ab{2,3}' looks for an 'a' followed by 'b' repeated
    # 2 or 3 times. Using a raw string (r'') is good practice for regex.
    pattern = r'ab{2,3}'
    
    # re.search() scans through the string looking for the first location
    # where the regular expression pattern produces a match.
    # It returns a match object if found, otherwise it returns None.
    if re.search(pattern, text):
        return True
    else:
        return False

```