code: def __init__(
      self,
      context: pytorch.PyTorchTrialContext,
      hparams: typing.Optional[typing.Dict],
  ) -> None:
      context.set_stop_requested(True)
      super().__init__(context=context, hparams=hparams)
  
file_path: determined/e2e_tests/tests/fixtures/mnist_pytorch/stop_requested_model_def.py
imports: import logging
  import typing
  from train import MNistTrial
  import determined
  from determined import pytorch
label_desc: Use image node_id 1 to create a new MNistTrialStopRequested object from inherited base classes: MNistTrial with example: obj = MNistTrialStopRequested(context, hparams)