code: def test_studio_login_success(mocker, dvc):
      mocker.patch(
          "dvc_studio_client.auth.get_access_token",
          return_value=("token_name", "isat_access_token"),
      )
  
      assert main(["studio", "login"]) == 0
  
      config = dvc.config.load_one("global")
      assert config["studio"]["token"] == "isat_access_token"
      assert config["studio"]["url"] == STUDIO_URL
  
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 2 for calling a global function with example usage: test_studio_login_success(mocker, dvc) without return types