def _restore_resources(resources):
resources = deepcopy(resources)<EOL>for resource in resources:<EOL><INDENT>schema = resource['<STR_LIT>']<EOL>for fk in schema.get('<STR_LIT>', []):<EOL><INDENT>_, name = _restore_path(fk['<STR_LIT>']['<STR_LIT>'])<EOL>fk['<STR_LIT>']['<STR_LIT>'] = name<EOL><DEDENT><DEDENT>return resources<EOL>
Restore schemas from being compatible with storage schemas.

    Foreign keys related operations.

    Args:
        list: resources from storage

    Returns:
        list: restored resources