def METHOD_NAME(self, repourl):
    """
    Takes a git repository URL from Bitbucket and tries to determine the owner and repository
    name
    :param repourl: Bitbucket git repo in the form of
                git@bitbucket.org:OWNER/REPONAME.git
                https://bitbucket.org/OWNER/REPONAME.git
                ssh://git@bitbucket.org/OWNER/REPONAME.git
                https://api.bitbucket.org/2.0/repositories/OWNER/REPONAME
    :return: owner, repo: The owner of the repository and the repository name
    """
    parsed = urlparse(repourl)
    base_parsed = urlparse(self.base_url)
    if parsed.path.startswith(base_parsed.path):
        path = parsed.path.replace(base_parsed.path, "")
    elif parsed.scheme:
        path = parsed.path
    else:
        # we assume git@host:owner/repo.git here
        path = parsed.path.split(':', 1)[-1]
    path = path.lstrip('/')
    if path.endswith('.git'):
        path = path[:-4]
    path = path.rstrip('/')
    parts = path.split('/')
    assert len(parts) == 2, 'OWNER/REPONAME is expected'
    return parts