docstr: Find reviews associated with the head commit
docstr_tok: ["Find","reviews","associated","with","the","head","commit"]
code: def head_commit_reviews(self) -> List[Review]:
      """
      Find reviews associated with the head commit
      """
      commits_to_review_status: Dict[str, List[Review]] = {}
  
      for review in self.reviews():
          if not review["authorCanPushToRepository"]:
              # ignore reviews from non-committers
              continue
  
          oid = review["commit"]["oid"]
          if oid in commits_to_review_status:
              commits_to_review_status[oid].append(review)
          else:
              commits_to_review_status[oid] = [review]
  
      # Only use the data for the head commit of the PR
      head_reviews = commits_to_review_status.get(self.head_oid(), [])
      return head_reviews
  
imports: import os
  import json
  import argparse
  import sys
  import warnings
  import logging
  import traceback
  import re
  from typing import Dict, Any, List, Optional, Callable, Union
  from pathlib import Path
  from git_utils import git, GitHubRepo, parse_remote, post
  from cmd_utils import init_log
label_desc: Use image node_id 9 for calling the PR obj's underlying member method code with example usage: obj.head_commit_reviews() and returns: head_reviews