class_docstr: Benchmark the global optimizers using the go_benchmark_functions
  suite
class_docstr_tok: ["Benchmark","the","global","optimizers","using","the","go_benchmark_functions","suite"]
code: def teardown(self, name, ret_value, solver):
      if not self.enabled:
          return
  
      with open(self.dump_fn, "w") as f:
          json.dump(self.results, f, indent=2, sort_keys=True)
  
imports: import os
  import time
  import inspect
  import json
  import traceback
  from collections import defaultdict
  import numpy
  from .None import test_functions
  from .None import go_benchmark_functions
  from .common import Benchmark, is_xslow, safe_import
  from .lsq_problems import extract_lsq_problems
label_desc: Use image node_id 3 for calling the BenchGlobal obj's underlying member method code with example usage: obj.teardown(name, ret_value, solver) without return types