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 max_iters(self) -> int:
      if "batches" in self.max_length:
          return int(self.max_length["batches"])
      raise KeyError(
          "max_length is not specified in terms of iterations"
      )
  
imports: from typing import Any, Dict, Optional, cast
  import mmcv
  import mmcv.runner.hooks
  import determined.pytorch
label_desc: Use image node_id 7 for calling the FakeRunner obj's underlying member method code with example usage: obj.max_iters() and returns: int