code: def compute_max_downscale_factor(self) -> IntVec2D:
      factor = IntVec2D(1, 1)
      max_factor = IntVec2D(1, 1)
      for layer in self.layers:
          factor = layer.downscale_factor(factor)
          max_factor.x = max(max_factor.x, factor.x)
          max_factor.y = max(max_factor.y, factor.y)
      return max_factor
  
file_path: calamari/calamari_ocr/ocr/model/params.py
imports: from dataclasses import dataclass, field
  from typing import List, Tuple, Any, Union
  from paiargparse import pai_dataclass, pai_meta
  from tfaip.model.modelbaseparams import ModelBaseParams
  from calamari_ocr.ocr.model.layers.layer import LayerParams, IntVec2D
label_desc: Use image node_id 5 for calling the ModelParams obj's underlying member method code with example usage: obj.compute_max_downscale_factor() and returns: max_factor