code: def mock_trial_load_or_create_func(
      experiment_name,
      trial_name,
      display_name=None,
      tags=None,
      sagemaker_session=None,
  ):
      return _Trial(
          trial_name=trial_name,
          experiment_name=experiment_name,
          display_name=display_name,
          tags=tags,
          sagemaker_session=sagemaker_session,
      )
  
imports: from __future__ import absolute_import
  from sagemaker.experiments.trial import _Trial
  from sagemaker.experiments.trial_component import _TrialComponent
label_desc: Use image node_id 2 for calling a global function with example usage: mock_trial_load_or_create_func(experiment_name, trial_name, display_name, tags, sagemaker_session) and returns: _Trial