code: def assign_issue(issue: int, assignee: str) -> bool:
      """
      Assign an issue to a user, which is a shorthand for jira.client.JIRA.assign_issue.
      The original one has an issue that it will search users again and only choose the assignee
      from 20 candidates. If it's unmatched, it picks the head blindly. In our case, the assignee
      is already resolved.
      """
      url = getattr(asf_jira, "_get_latest_url")(
          f"issue/{issue}/assignee"
      )
      payload = {"name": assignee}
      getattr(asf_jira, "_session").put(url, data=json.dumps(payload))
      return True
  
imports: import json
  import os
  import re
  import subprocess
  import sys
  import traceback
  from urllib.request import urlopen
  from urllib.request import Request
  from urllib.error import HTTPError
label_desc: Use image node_id 13 for calling a global function with example usage: assign_issue(issue, assignee) and returns: True