class_docstr: Benchmarks for static optimizations.
code: def benchmark_filter_parallelization(self):
      chain_lengths = [0, 1, 2, 5, 10, 20, 50]
      for chain_length in chain_lengths:
          self._benchmark_filter_parallelization(
              chain_length=chain_length, optimize_dataset=False
          )
          self._benchmark_filter_parallelization(
              chain_length=chain_length, optimize_dataset=True
          )
  
file_path: tensorflow-upstream/tensorflow/python/data/experimental/benchmarks/optimize_benchmark.py
imports: from tensorflow.python.data.benchmarks import benchmark_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import options
  from tensorflow.python.ops import math_ops
label_desc: Use image node_id 7 for calling the OptimizationBenchmark obj's underlying member method code with example usage: obj.benchmark_filter_parallelization() without return types