class_docstr: Mocks a mmcv runner and implements the same properties accessed by `LrUpdaterHook`.
  Instead, we get them from the PyTorchTrialContext.
class_docstr_tok: ["Mocks","a","mmcv","runner","and","implements","the","same","properties","accessed","by","`","LrUpdaterHook","`",".","Instead",",","we","get","them","from","the","PyTorchTrialContext","."]
code: def __init__(self, context: det_torch.PyTorchTrialContext):
      self.context = context
      self._data_loader = None  # type: Optional[DummyDataloader]
      experiment_config = context.get_experiment_config()
      self.max_length = experiment_config["searcher"]["max_length"]
  
imports: from typing import Any, Dict, Optional, cast
  import mmcv
  import mmcv.runner.hooks
  import determined.pytorch
label_desc: Use image node_id 1 to create a new FakeRunner object  with example: obj = FakeRunner(context)