code: def get_best_automl_run(pipeline_run):
      all_children = [c for c in pipeline_run.get_children()]
      automl_step = [
          c
          for c in all_children
          if c.properties.get("runTemplate") == "AutoML"
      ]
      for c in all_children:
          print(c, c.properties)
      automlrun = AutoMLRun(pipeline_run.experiment, automl_step[0].id)
      best = automlrun.get_best_child()
      return best
  
file_path: MachineLearningNotebooks/how-to-use-azureml/automated-machine-learning/forecasting-pipelines/scripts/register_model.py
imports: import argparse
  import os
  import uuid
  import shutil
  from azureml.core.model import Model, Dataset
  from azureml.core.run import Run, _OfflineRun
  from azureml.core import Workspace
  import azureml.automl.core.shared.constants
  from azureml.train.automl.run import AutoMLRun
label_desc: Use image node_id 1 for calling a global function with example usage: get_best_automl_run(pipeline_run) and returns: best