def METHOD_NAME(faces: List, limit: str = None) -> List:
    """
    >>> _limit([1, 2, 3], None)
    [1, 2, 3]
    >>> _limit([1, 2, 3], '')
    [1, 2, 3]
    >>> _limit([1, 2, 3], 0)
    [1, 2, 3]
    >>> _limit([1, 2, 3], 1)
    [1]
    >>> _limit([1, 2, 3], 2)
    [1, 2]
    """
    if len(faces) == 0:
        raise NoFaceFoundError
    try:
        limit = int(limit or 0)
    except ValueError as e:
        raise BadRequest('Limit format is invalid (limit >= 0)') from e
    if not (limit >= 0):
        raise BadRequest('Limit value is invalid (limit >= 0)')
    return faces[:limit] if limit else faces