class_docstr: Main logging handler used by :class:`~pyro.infer.mcmc`,
  to handle both progress bar updates and regular `logging`
  messages.
  
  :param log_handler: default log handler for logging
      output.
  :param progress_bar: If provided, diagnostic information
      is updated using the bar.
class_docstr_tok: ["Main","logging","handler","used","by",":","class",":","`","~pyro.infer.mcmc","`",",","to","handle","both","progress","bar","updates","and","regular","`","logging","`","messages",".",":","param","log_handler",":","default","log","handler","for","logging","output",".",":","param","progress_bar",":","If","provided",",","diagnostic","information","is","updated","using","the","bar","."]
code: def __init__(self, log_handler, progress_bar=None):
      logging.Handler.__init__(self)
      self.log_handler = log_handler
      self.progress_bar = progress_bar
  
imports: import json
  import logging
  import os
  import sys
  from collections import OrderedDict
  from tqdm import tqdm
  from tqdm.auto import tqdm
label_desc: Use image node_id 1 to create a new MCMCLoggingHandler object from inherited base classes: logging with example: obj = MCMCLoggingHandler(log_handler, progress_bar)