def METHOD_NAME(string):
    """
    Args:
        string (str): `01:30:00`
    Returns:
        datetime.timedelta:
    """
    result = re.search(r'(\d{1,2}):?(\d{2}):?(\d{2})', string)
    if result:
        result = [int(s) for s in result.groups()]
        return timedelta(hours=result[0], minutes=result[1], seconds=result[2])
    else:
        logger.warning(f'Invalid duration: {string}')
        return timedelta(hours=0, minutes=0, seconds=0)