def METHOD_NAME(versionrange, version=""):
    """
    Returns ``True`` if the ``version`` provided matches the condition of
    ``versionrange``.
    Parameters
    ----------
    version : str
        String specifying the version number with the format ``X.Y.Z``.
    versionrange : str
        Condition for the version range, expressed as a comparison operator
        followed by a version number in the format ``X.Y.Z``.
    Returns
    -------
    True, False : bool
        ``True`` if the condition is met, ``False`` if not.
    """
    if not version:
        version = esm_tools.__version__
    version = semver.VersionInfo.parse(version)
    if versionrange.startswith("<="):
        operator = version.__le__
        other_version = semver.VersionInfo.parse(
            versionrange.replace("<=", "").strip()
        )
    if versionrange.startswith("<"):
        operator = version.__lt__
        other_version = semver.VersionInfo.parse(
            versionrange.replace("<", "").strip()
        )
    elif versionrange.startswith(">="):
        operator = version.__ge__
        other_version = semver.VersionInfo.parse(
            versionrange.replace(">=", "").strip()
        )
    elif versionrange.startswith(">"):
        operator = version.__gt__
        other_version = semver.VersionInfo.parse(
            versionrange.replace(">", "").strip()
        )
    elif versionrange.startswith("=="):
        operator = version.__eq__
        other_version = semver.VersionInfo.parse(
            versionrange.replace("==", "").strip()
        )
    elif versionrange.startswith("!="):
        operator = version.__ne__
        other_version = semver.VersionInfo.parse(
            versionrange.replace("!=", "").strip()
        )
    else:
        raise MessageOfTheDayError(
            f"Unknown version range specified: {versionrange}"
        )
    return operator(other_version)