code: def new_query(
      shutdown=False, per_process_stats=False, get_driver_info=False
  ):
      """
      Obtain a new GPUStatCollection instance by querying nvidia-smi
      to get the list of GPUs and running process information.
      """
      return GPUStatCollection.new_query(
          shutdown=shutdown,
          per_process_stats=per_process_stats,
          get_driver_info=get_driver_info,
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import json
  import platform
  import sys
  from datetime import datetime
  import psutil
  from ..gpu import pynvml
label_desc: Use image node_id 1 for calling a global function with example usage: new_query(shutdown, per_process_stats, get_driver_info) and returns: GPUStatCollection