code: def test_no_gpu():
      with pytest.raises(
          RuntimeError,
          match="This contrib module requires available GPU",
      ):
          GpuInfo()
  
file_path: ignite/tests/ignite/contrib/metrics/test_gpu_info.py
imports: from unittest.mock import Mock, patch
  import pytest
  import torch
  from ignite.contrib.metrics import GpuInfo
  from ignite.engine import Engine, State
label_desc: Use image node_id 2 for calling a global function with example usage: test_no_gpu() without return types