code: def get_result_df(remote_run):
      children = list(remote_run.get_children(recursive=True))
      summary_df = pd.DataFrame(
          index=["run_id", "run_algorithm", "primary_metric", "Score"]
      )
      goal_minimize = False
      for run in children:
          if (
              "run_algorithm" in run.properties
              and "score" in run.properties
          ):
              summary_df[run.id] = [
                  run.id,
                  run.properties["run_algorithm"],
                  run.properties["primary_metric"],
                  float(run.properties["score"]),
              ]
              if "goal" in run.properties:
                  goal_minimize = (
                      run.properties["goal"].split("_")[-1] == "min"
                  )
  
      summary_df = summary_df.T.sort_values(
          "Score", ascending=goal_minimize
      ).drop_duplicates(["run_algorithm"])
      summary_df = summary_df.set_index("run_algorithm")
  
      return summary_df
  
imports: import json
  import pandas
  from azureml.core import Environment, ScriptRunConfig
  from azureml.core.run import Run
label_desc: Use image node_id 2 for calling a global function with example usage: get_result_df(remote_run) and returns: summary_df