class_docstr: TrialContext is the system-provided API to a Trial class.
class_docstr_tok: ["TrialContext","is","the","system-provided","API","to","a","Trial","class","."]
code: def __init__(
      self,
      core_context: core.Context,
      env: det.EnvContext,
  ) -> None:
      self._core = core_context
      self.env = env
  
      self.distributed = self._core.distributed
      self._stop_requested = False
  
file_path: determined/harness/determined/_trial_context.py
imports: import logging
  import pathlib
  from typing import Any, Dict
  import determined
  from determined import core
label_desc: Use image node_id 1 to create a new TrialContext object  with example: obj = TrialContext(core_context, env)