code: def check_tag_exists(version):
      """
      Check if the tag for this release has been uploaded yet.
      """
      tag = "sympy-" + version
      all_tag_lines = run("git", "ls-remote", "--tags", "origin")
      return any(tag in tag_line for tag_line in all_tag_lines)
  
imports: import os
  import json
  from subprocess import check_output
  from collections import OrderedDict, defaultdict
  from collections.abc import Mapping
  import glob
  from contextlib import contextmanager
  import requests
  from requests_oauthlib import OAuth2
label_desc: Use image node_id 12 for calling a global function with example usage: check_tag_exists(version) and returns: any