class_docstr: Run a google benchmark binary.
  
  This assumes the binary supports the standard command line options,
  notably `--benchmark_filter`, `--benchmark_format`, etc...
class_docstr_tok: ["Run","a","google","benchmark","binary",".","This","assumes","the","binary","supports","the","standard","command","line","options",",","notably","`","--","benchmark_filter","`",",","`","--","benchmark_format","`",",","etc","..."]
code: def list_benchmarks(self):
      argv = ["--benchmark_list_tests"]
      if self.benchmark_filter:
          argv.append(
              "--benchmark_filter={}".format(self.benchmark_filter)
          )
      result = self.run(
          *argv, stdout=subprocess.PIPE, stderr=subprocess.PIPE
      )
      return str.splitlines(result.stdout.decode("utf-8"))
  
imports: from itertools import filterfalse, groupby, tee
  import json
  import subprocess
  from tempfile import NamedTemporaryFile
  from .core import Benchmark
  from ..utils.command import Command
label_desc: Use image node_id 2 for calling the GoogleBenchmarkCommand obj's underlying member method code with example usage: obj.list_benchmarks() and returns: str