class_docstr: ``TrainContext`` gives access to report training and validation metrics to the Determined master
  during trial tasks.
class_docstr_tok: ["``","TrainContext","``","gives","access","to","report","training","and","validation","metrics","to","the","Determined","master","during","trial","tasks","."]
docstr: Report a short user-facing string that the WebUI can render to indicate what a trial is
  working on.
docstr_tok: ["Report","a","short","user-facing","string","that","the","WebUI","can","render","to","indicate","what","a","trial","is","working","on","."]
code: def set_status(self, status: str) -> None:
      """
      Report a short user-facing string that the WebUI can render to indicate what a trial is
      working on.
      """
  
      body = {"state": status}
      logger.debug(f"set_status({status})")
      self._session.post(
          f"/api/v1/trials/{self._trial_id}/runner/metadata", json=body
      )
  
imports: import enum
  import logging
  import pathlib
  from typing import Any, Callable, Dict, List, Optional, Set
  import determined
  from determined import core, tensorboard
  from determined.common import api, util
  from determined.common.api import bindings, errors
label_desc: Use image node_id 2 for calling the TrainContext obj's underlying member method code with example usage: obj.set_status(status) without return types