class_docstr: A pytest class suite for gpustat.
class_docstr_tok: ["A","pytest","class","suite","for","gpustat","."]
docstr: Test whether gpustat.main() works well.
  The behavior is mocked exactly as in test_new_query_mocked().
code: def test_main(self, scenario_basic):
      """Test whether gpustat.main() works well.
      The behavior is mocked exactly as in test_new_query_mocked().
      """
      sys.argv = ["gpustat"]
      gpustat.main()
  
imports: import ctypes
  import os
  import re
  import shlex
  import sys
  import types
  from collections import namedtuple
  from io import StringIO
  from typing import Any
  import psutil
  import pytest
  from mockito import ANY, mock, unstub, when, when2
  import gpustat
  from gpustat.nvml import pynvml, pynvml_monkeypatch
label_desc: Use image node_id 8 for calling the TestGPUStat obj's underlying member method code with example usage: obj.test_main(scenario_basic) without return types