code: def test_artifact_wait_failure(wandb_init, timeout):
      # Test to expect WaitTimeoutError when wait timeout is reached and large image
      # wasn't uploaded yet
      image = wandb.Image(np.random.randint(0, 255, (10, 10)))
      run = wandb_init()
      with pytest.raises(WaitTimeoutError):
          artifact = wandb.Artifact("art", type="image")
          artifact.add(image, "image")
          run.log_artifact(artifact).wait(timeout=timeout)
      run.finish()
  
imports: import os
  import platform
  import shutil
  import time
  from datetime import datetime, timedelta, timezone
  from pathlib import Path
  from typing import Callable, Optional
  import numpy
  import pytest
  import wandb
  from wandb import Api
  from wandb.sdk.artifacts.artifact import Artifact
  from wandb.sdk.artifacts.exceptions import ArtifactFinalizedError, WaitTimeoutError
  from wandb.sdk.artifacts.staging import get_staging_dir
  from wandb.sdk.wandb_run import Run
label_desc: Use image node_id 14 for calling a global function with example usage: test_artifact_wait_failure(wandb_init, timeout) without return types