code: def single_with_trials(single_without_success, orionstate, storage):
      """Create an experiment with all types of trials."""
      exp = experiment_builder.build(
          name="test_single_exp", storage=storage
      )
  
      x = {"name": "/x", "type": "real", "value": 100}
      results = {"name": "obj", "type": "objective", "value": 0}
      trial = Trial(
          experiment=exp.id,
          params=[x],
          status="completed",
          results=[results],
      )
      orionstate.database.write("trials", trial.to_dict())
      return exp.configuration
  
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 12 for calling a global function with example usage: single_with_trials(single_without_success, orionstate, storage) and returns: exp