code: def test_databricks_notebook_doesnt_hang_on_wandb_login(
      mocked_module,
  ):
      # test for WB-5264
  
      # make the test think we are running in a databricks notebook
      dbutils = mocked_module("dbutils")
      dbutils.shell.sc.appName = "Databricks Shell"
  
      # when we try to call wandb.login(), should fail with no-tty
      with mock.patch.object(
          wandb.sdk.lib.apikey,
          "_is_databricks",
          return_value=True,
      ):
          with pytest.raises(wandb.UsageError, match="tty"):
              wandb.login()
  
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 10 for calling a global function with example usage: test_databricks_notebook_doesnt_hang_on_wandb_login(mocked_module) without return types