code: def make_trialref(
      standard_session: api.Session,
  ) -> Callable[[int], trial.Trial]:
      def _make_trialref(trial_id: int) -> trial.Trial:
          return trial.Trial(trial_id, standard_session)
  
      return _make_trialref
  
file_path: determined/harness/tests/determined/common/experimental/test_trial.py
imports: import datetime
  from typing import Callable, no_type_check
  from unittest import mock
  import pytest
  import responses
  from determined.common import api
  from determined.common.experimental import checkpoint, determined, trial
  from tests.fixtures import api_responses
label_desc: Use image node_id 2 for calling a global function with example usage: make_trialref(standard_session) and returns: _make_trialref, trial