class_docstr: Helper functions for testing.
  
  Primarily provided for tests that use fixture (and derived)
  `three_experiments_branch_same_name_trials_benchmarks`
class_docstr_tok: ["Helper","functions","for","testing",".","Primarily","provided","for","tests","that","use","fixture","(","and","derived",")","`","three_experiments_branch_same_name_trials_benchmarks","`"]
docstr: Check that trials have valid status.
code: def assert_tested_trial_status(
      dumped_db, nb_duplicated=1, counts=None
  ):
      """Check that trials have valid status."""
      if counts is None:
          counts = {
              "new": 9,
              "reserved": 3,
              "suspended": 3,
              "completed": 3,
              "interrupted": 3,
              "broken": 3,
          }
      trial_status_count = Counter(
          trial["status"] for trial in dumped_db.read("trials")
      )
      assert len(trial_status_count) == len(counts)
      for status, count in counts.items():
          assert trial_status_count[status] == count * nb_duplicated
  
imports: import copy
  import os
  import pickle
  import zlib
  from collections import Counter
  from tempfile import NamedTemporaryFile
  import pytest
  import yaml
  import orion.core.cli
  import orion.core.io.experiment_builder
  import orion.core.utils.backward
  from orion.core.worker.trial import Trial
  from orion.storage.backup import _get_exp_key, dump_database, get_experiment_parent_links, get_experiment_root_links, get_trial_parent_links
label_desc: Use image node_id 5 for calling the _Helpers obj's underlying member method code with example usage: obj.assert_tested_trial_status(dumped_db, nb_duplicated, counts) without return types