code: def test_create(sagemaker_session):
      client = sagemaker_session.sagemaker_client
      client.create_trial_component.return_value = {
          "TrialComponentArn": "bazz",
      }
      obj = _TrialComponent.create(
          trial_component_name="foo",
          display_name="bar",
          sagemaker_session=sagemaker_session,
      )
      client.create_trial_component.assert_called_with(
          TrialComponentName="foo", DisplayName="bar"
      )
      assert "foo" == obj.trial_component_name
      assert "bar" == obj.display_name
      assert "bazz" == obj.trial_component_arn
  
imports: from __future__ import absolute_import
  import datetime
  import unittest.mock
  from unittest.mock import patch
  import botocore
  from sagemaker import Session
  from sagemaker.experiments import _api_types
  from sagemaker.experiments._api_types import TrialComponentSearchResult, Parent, _TrialComponentStatusType
  from sagemaker.experiments.trial_component import _TrialComponent
label_desc: Use image node_id 1 for calling a global function with example usage: test_create(sagemaker_session) without return types