code: def test_studio_token(dvc, capsys):
      with dvc.config.edit("global") as conf:
          conf["studio"]["token"] = "isat_access_token"
  
      assert main(["studio", "token"]) == 0
      assert capsys.readouterr().out == "isat_access_token\n"
  
      with dvc.config.edit("global") as conf:
          del conf["studio"]["token"]
  
      assert main(["studio", "token"]) == 1
  
file_path: dvc/tests/unit/command/test_studio.py
imports: from dvc_studio_client.auth import AuthenticationExpired
  from dvc.cli import main
  from dvc.utils.studio import STUDIO_URL
label_desc: Use image node_id 5 for calling a global function with example usage: test_studio_token(dvc, capsys) without return types