code: def _format_brief_report_one(result):
      """Formats the given `Result` as a condensed report str."""
      report = f"\nExpected mean({result.reduction_size} draws)"
      report += f" in {result.expected:.3g} +- {result.tolerance:.3g};"
      report += f" got mean ~ N(loc={result.gaussian.loc:.3g}, scale={result.gaussian.scale:.3g}),"
      p_fail = result.gaussian.too_low_p + result.gaussian.too_high_p
      report += f" p(fail) = {p_fail:.3g}."
      for target_rate in [0.001, 1e-9]:
          for_rate = result.gaussian.for_error_rate(target_rate)
          if p_fail > target_rate:
              report += f"\nTo lower to {target_rate},"
          else:
              report += f"\nTo raise to {target_rate},"
          report += f" try atol {for_rate.new_atol:.3g} or rtol {for_rate.new_rtol:.3g}"
          if (
              for_rate.out_of_bounds
              or for_rate.too_tight
              or for_rate.too_broad
          ):
              report += "."
          else:
              report += f", or {for_rate.samples_factor:.3g} times the samples."
      return report
  
imports: import collections
  import numpy
  import scipy.optimize
  import scipy.stats
label_desc: Use image node_id 12 for calling a global function with example usage: _format_brief_report_one(result) and returns: report