docstr: Callback on train result to record metrics returned by trainer.
          
docstr_tok: ["Callback","on","train","result","to","record","metrics","returned","by","trainer","."]
code: def on_trial_result(self, iteration, trials, trial, result, **info):
      """Callback on train result to record metrics returned by trainer."""
      run = Run.get_context()
      run.log(
          name="episode_reward_mean",
          value=result["episode_reward_mean"],
      )
      run.log(name="episodes_total", value=result["episodes_total"])
  
imports: from azureml.core import Run
  from ray import tune
  from ray.tune import Callback
  from ray.air import session
label_desc: Use image node_id 1 for calling the TrialCallback obj's underlying member method code with example usage: obj.on_trial_result(iteration, trials, trial, result) without return types