code: def test_load_or_create_when_not_exist(mock_create, mock_load):
      sagemaker_session = Session()
      trial_name = "trial_name"
      exp_name = "exp_name"
  
      _Trial._load_or_create(
          trial_name=trial_name,
          experiment_name=exp_name,
          sagemaker_session=sagemaker_session,
      )
  
      mock_create.assert_called_once_with(
          trial_name=trial_name,
          experiment_name=exp_name,
          display_name=None,
          tags=None,
          sagemaker_session=sagemaker_session,
      )
      mock_load.assert_not_called()
  
imports: from __future__ import absolute_import
  import botocore
  import pytest
  import datetime
  from unittest.mock import patch
  from sagemaker import Session
  from sagemaker.experiments._api_types import TrialSummary
  from sagemaker.experiments.trial import _Trial
  from sagemaker.experiments.trial_component import _TrialComponent
label_desc: Use image node_id 10 for calling a global function with example usage: test_load_or_create_when_not_exist(mock_create, mock_load) without return types