code: def is_valid_github_uri(uri: URI, expected_path_terms: Tuple[str, ...]) -> bool:
      
      if not is_text(uri):
          return False
  
      parsed = parse.urlparse(uri)
      path, scheme, authority = parsed.path, parsed.scheme, parsed.netloc
      if not all((path, scheme, authority)):
          return False
  
      if any(term for term in expected_path_terms if term not in path):
          return False
  
      if scheme != "https":
          return False
  
      if authority != GITHUB_API_AUTHORITY:
          return False
      return True
docs: Return a bool indicating whether or not the URI fulfills the following specs
      Valid Github URIs *must*:
      - Have 'https' scheme
      - Have 'api.github.com' authority
      - Have a path that contains all "expected_path_terms"