code: def hijack(prid):
      url = f"https://api.github.com/repos/RaRe-Technologies/gensim/pulls/{prid}"
      with smart_open.open(url) as fin:
          prinfo = json.load(fin)
  
      user = prinfo["head"]["user"]["login"]
      ssh_url = prinfo["head"]["repo"]["ssh_url"]
  
      remotes = check_output(["git", "remote"]).split("\n")
      if user not in remotes:
          subprocess.check_call(["git", "remote", "add", user, ssh_url])
  
      subprocess.check_call(["git", "fetch", user])
  
      ref = prinfo["head"]["ref"]
      subprocess.check_call(["git", "checkout", f"{user}/{ref}"])
  
      #
      # Prefix the local branch name with the user to avoid naming clashes with
      # existing branches, e.g. develop
      #
      subprocess.check_call(["git", "switch", "-c", f"{user}_{ref}"])
  
      #
      # Set the upstream so we can push back to it more easily
      #
      subprocess.check_call(
          ["git", "branch", "--set-upstream-to", f"{user}/{ref}"]
      )
  
imports: import json
  import subprocess
  import sys
  import smart_open
label_desc: Use image node_id 3 for calling a global function with example usage: hijack(prid) without return types