def _id_part(id, i):
    """Get the ith part of some container ID, e.g.
    container_1567013493699_0003_01_000002. If *id* is None
    or too short, return ''"""
    parts = (id or '').split('_')

    if i >= len(parts):
        return ''
    else:
        return parts[i]