code: def run_query(query):
      request = requests.post(
          "https://api.github.com/graphql",
          json={"query": query},
          headers=headers,
      )
      if request.status_code == 200:
          return request.json()
      else:
          raise Exception(
              f"Query failed to run by returning code of {request.status_code}. {query}"
          )
  
imports: import json
  import locale
  import os
  import re
  import subprocess
  from collections import namedtuple
  from os.path import expanduser
  import requests
label_desc: Use image node_id 9 for calling a global function with example usage: run_query(query) and returns: request