def _ensure_has_len(seq):
    try:
        len(seq)
    except TypeError:
        return list(seq)
    else:
        return seq
Formats the iteration coordinate to a human-readable string.
dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/_ensure_has_len--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/util/record_util.py/format_iteration_coordinate