code: def test_list_twice(run_obj, sagemaker_session):
      tc1 = _TrialComponent.create(
          trial_component_name=f"non-run-tc1-{name()}",
          sagemaker_session=sagemaker_session,
      )
      tc2 = _TrialComponent.create(
          trial_component_name=f"non-run-tc2-{name()}",
          sagemaker_session=sagemaker_session,
          tags=TAGS,
      )
      run_obj._trial.add_trial_component(tc1)
      run_obj._trial.add_trial_component(tc2)
  
      run_tcs = list_runs(
          experiment_name=run_obj.experiment_name,
          sagemaker_session=sagemaker_session,
      )
      assert len(run_tcs) == 1
      assert run_tcs[0].run_name == run_obj.run_name
      assert run_tcs[0].experiment_name == run_obj.experiment_name
      assert run_tcs[0].experiment_config == run_obj.experiment_config
  
      # note the experiment name used by run_obj is already mixed case and so
      # covers the mixed case experiment name double create issue
      run_tcs_second_result = list_runs(
          experiment_name=run_obj.experiment_name,
          sagemaker_session=sagemaker_session,
      )
      assert len(run_tcs) == 1
      assert run_tcs_second_result[0].run_name == run_obj.run_name
      assert (
          run_tcs_second_result[0].experiment_name
          == run_obj.experiment_name
      )
      assert (
          run_tcs_second_result[0].experiment_config
          == run_obj.experiment_config
      )
  
imports: from __future__ import absolute_import
  import datetime
  import json
  import os
  import time
  import pytest
  from tests.conftest import CUSTOM_S3_OBJECT_KEY_PREFIX
  from tests.integ.sagemaker.experiments.conftest import TAGS
  from sagemaker.experiments._api_types import _TrialComponentStatusType
  from sagemaker.experiments._utils import is_run_trial_component
  from sagemaker.processing import FrameworkProcessor
  from sagemaker.pytorch import PyTorch
  from sagemaker.s3 import S3Uploader
  from sagemaker.xgboost import XGBoostModel
  from tests.integ import DATA_DIR
  from sagemaker.experiments._metrics import BATCH_SIZE
  from sagemaker.experiments.trial_component import _TrialComponent
  from sagemaker.sklearn import SKLearn
  from sagemaker.utils import retry_with_backoff, unique_name_from_base
  from tests.integ.sagemaker.experiments.helpers import name, cleanup_exp_resources
  from sagemaker.experiments.run import RUN_NAME_BASE, DELIMITER
  from sagemaker.experiments import Run, load_run, list_runs
  from sagemaker.experiments._helper import _DEFAULT_ARTIFACT_PREFIX
label_desc: Use image node_id 12 for calling a global function with example usage: test_list_twice(run_obj, sagemaker_session) without return types