def _linked_layer_iter(self):
        from psd_tools.decoder.linked_layer import LinkedLayerCollection
        for block in self.decoded_data.layer_and_mask_data.tagged_blocks:
            if isinstance(block.data, LinkedLayerCollection):
                for layer in block.data.linked_list:
                    yield layer
Iterate over linked layers (smart objects / embedded files)
dataset/ETHPy150Open psd-tools/psd-tools/src/psd_tools/user_api/psd_image.py/PSDImage._linked_layer_iter