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