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 raise_ok(self, level="error"):
      errors = [
          warn
          for warn in self._warnings
          if _LEVELS[warn.level] >= _LEVELS[level]
      ]
      if errors:
          raise ValueError(
              "Serious convergence issues during sampling."
          )
  
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 7 for calling the SamplerReport obj's underlying member method code with example usage: obj.raise_ok(level) without return types