code: def _create_unmanaged_trial_inner(
      client: experimental.Determined,
      exp_id: int,
      hparams: Optional[dict] = None,
  ) -> Tuple[int, str]:
      sess = client._session
      assert sess
  
      req2 = bindings.v1CreateTrialRequest(
          experimentId=exp_id, hparams=hparams, unmanaged=True
      )
      resp2 = bindings.post_CreateTrial(session=sess, body=req2)
  
      trial_id = resp2.trial.id
      task_id = resp2.trial.taskId
      assert task_id
      return trial_id, task_id
  
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 8 for calling a global function with example usage: _create_unmanaged_trial_inner(client, exp_id, hparams) and returns: trial_id,  task_id