class_docstr: Test all storage backend
class_docstr_tok: ["Test","all","storage","backend"]
docstr: Test fetch non completed trials
code: def test_fetch_noncompleted_trials(self, storage):
      """Test fetch non completed trials"""
      with OrionState(
          experiments=[base_experiment],
          trials=generate_trials(),
          storage=storage,
      ) as cfg:
          storage = cfg.storage
  
          experiment = cfg.get_experiment("default_name", version=None)
          trials = storage.fetch_noncompleted_trials(experiment)
  
          count = 0
          for trial in cfg.trials:
              if trial["status"] != "completed":
                  count += 1
  
          for trial in trials:
              assert trial.status != "completed"
  
          assert len(trials) == count
  
imports: import copy
  import datetime
  import logging
  import os
  import pickle
  import time
  import pytest
  import orion.core
  from orion.core.io.database import DuplicateKeyError
  from orion.core.io.database.pickleddb import PickledDB
  from orion.core.worker.trial import Trial
  from orion.storage.base import FailedUpdate, LockAcquisitionTimeout, LockedAlgorithmState, MissingArguments, setup_storage
  from orion.storage.legacy import Legacy
  from orion.storage.track import HAS_TRACK, REASON
  from orion.testing import OrionState, base_experiment
label_desc: Use image node_id 23 for calling the TestStorage obj's underlying member method code with example usage: obj.test_fetch_noncompleted_trials(storage) without return types