code: def _get_trial_parent(trial):
      """Return trial parent"""
      return (
          trial["parent"] if isinstance(trial, dict) else trial.parent
      )
  
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 13 for calling a global function with example usage: _get_trial_parent(trial) and returns: unknown