code: def test_create_tags(trial_component_obj, sagemaker_session):
      client = sagemaker_session.sagemaker_client
      while True:
          actual_tags = client.list_tags(
              ResourceArn=trial_component_obj.trial_component_arn
          )["Tags"]
          if actual_tags:
              break
      for tag in actual_tags:
          if "aws:tag" in tag.get("Key"):
              actual_tags.remove(tag)
      assert actual_tags == trial_component_obj.tags
  
file_path: sagemaker-python-sdk/tests/integ/sagemaker/experiments/test_trial_component.py
imports: from __future__ import absolute_import
  import datetime
  import uuid
  from sagemaker.experiments._api_types import _TrialComponentStatusType
  from tests.integ.sagemaker.experiments.helpers import EXP_INTEG_TEST_NAME_PREFIX
  from sagemaker.experiments import _api_types, trial_component
  from sagemaker.utilities.search_expression import Filter, Operator, SearchExpression
label_desc: Use image node_id 2 for calling a global function with example usage: test_create_tags(trial_component_obj, sagemaker_session) without return types