code: def test_studio_login_arguments(mocker):
      mock = mocker.patch(
          "dvc_studio_client.auth.get_access_token",
          return_value=("token_name", "isat_access_token"),
      )
  
      assert (
          main(
              [
                  "studio",
                  "login",
                  "--name",
                  "token_name",
                  "--hostname",
                  "https://example.com",
                  "--scopes",
                  "experiments",
                  "--no-open",
              ]
          )
          == 0
      )
  
      mock.assert_called_with(
          token_name="token_name",
          hostname="https://example.com",
          scopes="experiments",
          use_device_code=True,
          client_name="DVC",
      )
  
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 3 for calling a global function with example usage: test_studio_login_arguments(mocker) without return types