def _translate_shards(shards):
    """Converts the dicts from DescribeStream to the internal Shard format."""
    for shard in shards:
        yield {'shard_id': shard['ShardId'], 'iterator_type': None,
            'sequence_number': None, 'iterator_id': None, 'parent': shard.
            get('ParentShardId')}
