def rename_fields_from_feature_collection(feature_collection):
    """This function renames feature collection keys to leave it according to STAC 9.0 and it is returned"""

    if 'meta' in feature_collection:
        # rename 'meta' key to 'context'
        feature_collection['context'] = feature_collection.pop('meta')

    if 'found' in feature_collection['context']:
        # rename 'found' key to 'matched'
        feature_collection['context']['matched'] = feature_collection['context'].pop('found')

    return feature_collection