code: def get_experiment_parent_links(experiments: list) -> _Graph:
      """Generate experiments graphs based on experiment parents.
  
      Does not currently check experiment roots.
      """
      graph = _Graph({_get_exp_key(exp): exp for exp in experiments})
      exp_id_to_key = {
          exp["_id"]: _get_exp_key(exp) for exp in experiments
      }
      for exp in experiments:
          parent_id = _get_exp_parent_id(exp)
          if parent_id is not None:
              parent_key = exp_id_to_key[parent_id]
              child_key = _get_exp_key(exp)
              graph.add_link(parent_key, child_key)
      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 9 for calling a global function with example usage: get_experiment_parent_links(experiments) and returns: graph