code: def gh_labels(pr_number):
      query = f"""
      {{
        repository(owner: "pytorch", name: "audio") {{
          pullRequest(number: {pr_number}) {{
            labels(first: 10) {{
              edges {{
                node {{
                  name
                }}
              }}
            }}
          }}
        }}
      }}
      """
      query = run_query(query)
      pr = query["data"]["repository"]["pullRequest"]
      if not pr:
          # to account for unrecognized PR numbers from commits originating from fb internal
          return []
      edges = pr["labels"]["edges"]
      return [edge["node"]["name"] for edge in edges]
  
file_path: audio/tools/release_notes/retrieve_prs.py
imports: import argparse
  import json
  import re
  import subprocess
  from collections import namedtuple
  from os.path import expanduser
  import requests
label_desc: Use image node_id 6 for calling a global function with example usage: gh_labels(pr_number) and returns: unknown, list