code: def save_token_file(token):
      token_file = input(
          "> Enter token file location [~/.sympy/release-token] "
      )
      token_file = token_file or "~/.sympy/release-token"
  
      token_file_expand = os.path.expanduser(token_file)
      token_file_expand = os.path.abspath(token_file_expand)
      token_folder, _ = os.path.split(token_file_expand)
  
      try:
          if not os.path.isdir(token_folder):
              os.mkdir(token_folder, 0o700)
          with open(token_file_expand, "w") as f:
              f.write(token + "\n")
          os.chmod(token_file_expand, stat.S_IREAD | stat.S_IWRITE)
      except OSError as e:
          print("> Unable to create folder for token file: ", e)
          return
      except IOError as e:
          print("> Unable to save token file: ", e)
          return
  
      return token_file
  
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 16 for calling a global function with example usage: save_token_file(token) and returns: token_file