class_docstr: Tests trials/:experiment_name
docstr: Tests that mixing parameters work as intended
docstr_tok: ["Tests","that","mixing","parameters","work","as","intended"]
code: def test_trials_by_from_specific_version_by_status_with_ancestors(
      self, client, ephemeral_storage
  ):
      """Tests that mixing parameters work as intended"""
      storage = ephemeral_storage.storage
  
      add_experiment(storage, name="a", version=1, _id=1)
      add_experiment(storage, name="b", version=1, _id=2)
      add_experiment(storage, name="a", version=2, _id=3)
      add_experiment(storage, name="a", version=3, _id=4)
  
      add_trial(
          storage,
          experiment=1,
          id_override="00",
          value=1,
          status="completed",
      )
      add_trial(
          storage,
          experiment=3,
          id_override="01",
          value=2,
          status="broken",
      )
      add_trial(
          storage,
          experiment=3,
          id_override="02",
          value=3,
          status="completed",
      )
      add_trial(
          storage,
          experiment=2,
          id_override="03",
          value=4,
          status="completed",
      )
  
      response = client.simulate_get(
          "/trials/a?ancestors=true&version=2&status=completed"
      )
  
      assert response.status == "200 OK"
      assert response.json == [
          {"id": "79a873a1146cbdcc385f53e7c14f41aa"},
          {"id": "8e3684c8031804022ff915bb2121e49d"},
      ]
  
imports: import copy
  import datetime
  import random
  import falcon
  from orion.core.io import experiment_builder
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 7 for calling the TestTrialCollection obj's underlying member method code with example usage: obj.test_trials_by_from_specific_version_by_status_with_ancestors(client, ephemeral_storage) without return types