<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_project_version_by_name(self, project, version_name):
 """Get a version Resource by its name present on a project. :param project: ID or key of the project to get versions from :type project: str :param version_name: name of the version to search for :type version_name: str :rtype: Optional[Version] """

        versions = self.project_versions(project)
        for version in versions:
            if version.name == version_name:
                return version