code: def _start_trial_inner(
      client: experimental.Determined,
      trial_id: int,
      resume: bool,
  ) -> bindings.v1StartTrialResponse:
      sess = client._session
      assert sess
  
      req = bindings.v1StartTrialRequest(
          trialId=trial_id, resume=resume
      )
      resp = bindings.post_StartTrial(
          session=sess, body=req, trialId=trial_id
      )
  
      return resp
  
imports: import logging
  from typing import Callable, Optional, Tuple, TypeVar, Union
  import determined
  from determined import core, experimental
  from determined.common import api, util
  from determined.common.api import bindings
label_desc: Use image node_id 12 for calling a global function with example usage: _start_trial_inner(client, trial_id, resume) and returns: resp