class_docstr: run chaos
class_docstr_tok: ["run","chaos"]
code: def extract_cases(self, collection):
      before_steps = collection["before"]
      after = collection["after"] if "after" in collection else None
      processing = collection["processing"]
      case_metrics = []
      case_params = [
          {
              "before_steps": before_steps,
              "after": after,
              "processing": processing,
          }
      ]
      self.init_metric(self.name, {}, {}, None)
      case_metric = copy.deepcopy(self.metric)
      case_metric.set_case_metric_type()
      case_metrics.append(case_metric)
      return case_params, case_metrics
  
imports: import copy
  import logging
  import time
  from operator import methodcaller
  from yaml import full_load, dump
  import threading
  from milvus_benchmark import utils
  from milvus_benchmark.runners import utils
  from milvus_benchmark.chaos import utils
  from milvus_benchmark.runners.base import BaseRunner
  from chaos.chaos_opt import ChaosOpt
  from milvus_benchmark import config
  from milvus_benchmark.chaos.chaos_mesh import PodChaos, NetworkChaos
label_desc: Use image node_id 3 for calling the SimpleChaosRunner obj's underlying member method code with example usage: obj.extract_cases(collection) and returns: case_params,  case_metrics