def _as_truncated(value):
 if isinstance(value, _truncated_label):
  return value
 else:
  return _truncated_label(value)

def _as_truncated ( value ) : if isinstance ( value , _truncated_label ) : return value else : return _truncated_label ( value )
coerce the given value to :class: .