code: def generate_trials_list(level, statuses=Trial.allowed_stati):
      return [
          {"status": trial_status, "x": i + len(statuses) * level}
          for i, trial_status in enumerate(statuses)
      ]
  
file_path: orion/tests/functional/core/worker/test_experiment_functional.py
imports: import logging
  from orion.client import build_experiment, get_experiment
  from orion.core.io.database import DuplicateKeyError
  from orion.core.worker.trial import Trial
  from orion.testing import mocked_datetime
  from orion.testing.evc import build_child_experiment, build_root_experiment, disable_duplication
label_desc: Use image node_id 1 for calling a global function with example usage: generate_trials_list(level, statuses) and returns: unknown