code: def test_login_timeout(notebook, monkeypatch):
      monkeypatch.setattr(
          wandb.util,
          "prompt_choices",
          lambda x, input_timeout=None, jupyter=True: x[0],
      )
      monkeypatch.setattr(
          wandb.wandb_lib.apikey,
          "prompt_choices",
          lambda x, input_timeout=None, jupyter=True: x[0],
      )
      with notebook("login_timeout.ipynb") as nb:
          nb.execute_all()
          output = nb.cell_output_text(1)
          assert "W&B disabled due to login timeout" in output
  
          output = nb.cell_output(1)
          assert output[-1]["data"]["text/plain"] == "False"
  
imports: import json
  import os
  import pathlib
  import platform
  import subprocess
  import sys
  from unittest import mock
  import pytest
  import wandb
  import wandb.jupyter
  import wandb.sdk.lib.apikey
  import wandb.util
label_desc: Use image node_id 1 for calling a global function with example usage: test_login_timeout(notebook, monkeypatch) without return types