code: def get_trial_parent_links(trials: list) -> _Graph:
      """Generate trials graph based on trial parents. Not yet used."""
      trial_map = {_get_trial_key(trial): trial for trial in trials}
      graph = _Graph(trial_map)
      for trial in trials:
          parent = _get_trial_parent(trial)
          if parent is not None:
              assert parent in trial_map
              graph.add_link(parent, _get_trial_key(trial))
      return graph
  
imports: import logging
  import os
  import shutil
  from typing import Any, Dict, List
  from orion.core.io.database import DatabaseError
  from orion.core.io.database.pickleddb import PickledDB
  from orion.core.utils import generate_temporary_file
  from orion.core.utils.tree import TreeNode
  from orion.storage.base import BaseStorageProtocol, setup_storage
label_desc: Use image node_id 11 for calling a global function with example usage: get_trial_parent_links(trials) and returns: graph