def METHOD_NAME(
        db: 'DBHandler',
        data: list[ManuallyTrackedBalance],
) -> None:
    """Adds manually tracked balances
    May raise:
    - InputError if any of the given balance entry labels already exist in the DB
    - TagConstraintError if any of the given manually tracked balances contain unknown tags.
    """
    if len(data) == 0:
        raise InputError('Empty list of manually tracked balances to add was given')
    with db.user_write() as cursor:
        db.ensure_tags_exist(
            cursor=cursor,
            given_data=data,
            action='adding',
            data_type='manually tracked balances',
        )
        db.METHOD_NAME(write_cursor=cursor, data=data)