code: def __init__(self, **kwargs):
      super().__init__(**kwargs)
  
      self.cer_total = keras.metrics.Mean("CER")
      self.sub_cer = [
          keras.metrics.Mean(f"CER_{i}")
          for i in range(self.params.ensemble)
      ]
  
imports: from dataclasses import dataclass
  import tensorflow
  from typing import Dict, List, Tuple
  import bidi.algorithm
  import Levenshtein
  from paiargparse import pai_dataclass
  from tfaip import Sample
  from tfaip.model.modelbase import ModelBase
  from tfaip.util.tftyping import AnyTensor
  from calamari_ocr.ocr.model.params import ModelParams
  from tensorflow.python.ops import math_ops
  from calamari_ocr.ocr.model.ensemblegraph import EnsembleGraph
label_desc: Use image node_id 1 to create a new EnsembleModel object from inherited base classes: ModelBase with example: obj = EnsembleModel()