@staticmethod<EOL><INDENT>def parse_semantic_version(version_identifier: str, _package_name: str = None) -> semver.Version:<DEDENT>
try:<EOL><INDENT>semantic_version = semver.Version(version_identifier)<EOL><DEDENT>except Exception as exc:<EOL><INDENT>semantic_version = semver.Version.coerce(version_identifier)<EOL>if _package_name:<EOL><INDENT>_LOGGER.debug(<EOL>f"<STR_LIT>"<EOL>f"<STR_LIT>"<EOL>)<EOL><DEDENT>else:<EOL><INDENT>_LOGGER.debug(<EOL>f"<STR_LIT>"<EOL>f"<STR_LIT>"<EOL>)<EOL><DEDENT><DEDENT>return semantic_version<EOL>
Parse the given version identifier into a semver representation.