code: def trial_component(trial_component_name):
      return {
          "TrialComponentName": trial_component_name,
          "DisplayName": "Training",
          "Source": {"SourceArn": "some-source-arn"},
          "Parameters": {
              "hp1": {"NumberValue": 1.0},
              "hp2": {"StringValue": "abc"},
          },
          "Metrics": [
              {
                  "MetricName": "metric1",
                  "Max": 5.0,
                  "Min": 3.0,
                  "Avg": 4.0,
                  "StdDev": 1.0,
                  "Last": 2.0,
                  "Count": 2.0,
              },
              {
                  "MetricName": "metric2",
                  "Max": 10.0,
                  "Min": 8.0,
                  "Avg": 9.0,
                  "StdDev": 0.05,
                  "Last": 7.0,
                  "Count": 2.0,
              },
          ],
          "InputArtifacts": {
              "inputArtifacts1": {
                  "MediaType": "text/plain",
                  "Value": "s3:/foo/bar1",
              },
              "inputArtifacts2": {
                  "MediaType": "text/plain",
                  "Value": "s3:/foo/bar2",
              },
          },
          "OutputArtifacts": {
              "outputArtifacts1": {
                  "MediaType": "text/csv",
                  "Value": "s3:/sky/far1",
              },
              "outputArtifacts2": {
                  "MediaType": "text/csv",
                  "Value": "s3:/sky/far2",
              },
          },
          "Parents": [
              {"TrialName": "trial1", "ExperimentName": "experiment1"}
          ],
      }
  
file_path: sagemaker-python-sdk/tests/unit/test_experiments_analytics.py
imports: from __future__ import absolute_import
  import mock
  import pytest
  import pandas
  from collections import OrderedDict
  from sagemaker.analytics import ExperimentAnalytics
label_desc: Use image node_id 2 for calling a global function with example usage: trial_component(trial_component_name) and returns: dict