class_docstr: Bundle warnings, convergence stats and metadata of a sampling run.
class_docstr_tok: ["Bundle","warnings",",","convergence","stats","and","metadata","of","a","sampling","run","."]
code: def _add_warnings(self, warnings, chain=None):
      if chain is None:
          warn_list = self._global_warnings
      else:
          warn_list = self._chain_warnings.setdefault(chain, [])
      warn_list.extend(warnings)
  
file_path: pymc/pymc/backends/report.py
imports: import dataclasses
  import logging
  from typing import Dict, List, Optional
  from pymc.stats.convergence import _LEVELS, SamplerWarning
label_desc: Use image node_id 8 for calling the SamplerReport obj's underlying member method code with example usage: obj._add_warnings(warnings, chain) without return types