def METHOD_NAME(cls, project):
    """Method called to retrieve the url used to check for new version
    of the project provided, project that relies on the backend of this plugin.
    Attributes:
        project (:obj:`anitya.db.models.Project`): Project object whose backend
            corresponds to the current plugin.
    Returns:
        str: url used for version checking
    """
    tokens = []
    url = ""
    url_template = (
        "%(hostname)s/api/v4/projects/%(owner)s%%2F%(repo)s/repository/tags"
    )
    if project.version_url:
        tokens = project.version_url.split("/")
    elif project.homepage:
        tokens = project.homepage.split("/")
    if len(tokens) >= 5:
        url = url_template % {
            "hostname": tokens[0] + "//" + tokens[2],
            "owner": tokens[3],
            "repo": "%2F".join(tokens[4:]),  # any subgroups & repo
        }
    return url