def _as_truncated(value):

    if isinstance(value, _truncated_label):
        return value
    else:
        return _truncated_label(value)
coerce the given value to :class:`._truncated_label`.
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/sql/elements.py/_as_truncated