code: def ensure_trial_working_dir(experiment, trial):
      """If the trial's exp working dir is not set, set it to current experiment's working dir."""
      if not trial.exp_working_dir:
          trial.exp_working_dir = experiment.working_dir
  
file_path: orion/src/orion/core/utils/backward.py
imports: import copy
  import logging
  import pprint
  import orion.core
  from orion.core.io.orion_cmdline_parser import OrionCmdlineParser
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 10 for calling a global function with example usage: ensure_trial_working_dir(experiment, trial) without return types