def _as_truncated(value):

    if isinstance(value, _truncated_label):
        return value
    else:
        return _truncated_label(value)
Get metadata entries for precinct-level results in per-county Excel files.
dataset/ETHPy150Open goFrendiAsgard/kokoropy/kokoropy/packages/sqlalchemy/sql/elements.py/_as_truncated--crossover with--dataset/ETHPy150Open openelections/openelections-core/openelex/us/ia/datasource.py/Datasource._precinct_xls_metadata