code: def compare_urls(self, url1, url2):
          # type: (str, str) -> bool
          
          return (self.normalize_url(url1) == self.normalize_url(url2))
docs: Compare two repo URLs for identity, ignoring incidental differences.