def _equal(versions, version):
    """Gets the package with specified version.

    :param versions: the tree of versions.
    :param version: the required version
    """
    value = versions.get(version, None)
    return [] if value is None else [value]
