docstr: Sets a global variable to (not) show progress bars.
  
  Parameters
  ----------
  show_progress: boolean
      If True, shows progress bars, else doesn't.
docstr_tok: ["Sets","a","global","variable","to","(","not",")","show","progress","bars",".","Parameters","--","--","--","--","--","show_progress",":","boolean","If","True",",","shows","progress","bars",",","else","does","n't","."]
code: def set_show_progress(self, show_progress):
      """
      Sets a global variable to (not) show progress bars.
  
      Parameters
      ----------
      show_progress: boolean
          If True, shows progress bars, else doesn't.
      """
      if show_progress not in [True, False]:
          raise ValueError(
              f"show_progress must be a boolean. Got: {show_progress}"
          )
  
      self.SHOW_PROGRESS = show_progress
  
file_path: pgmpy/pgmpy/global_vars.py
imports: import logging
  import numpy
  import torch
label_desc: Use image node_id 6 for calling the Config obj's underlying member method code with example usage: obj.set_show_progress(show_progress) without return types