code: def apply_weights(self, target_model, new_weights):
      if self.codec_changes is None:
          super().apply_weights(target_model, new_weights)
      else:
          self.copy_weights_from_model(
              target_model, new_weights, *self.codec_changes
          )
  
file_path: calamari/calamari_ocr/ocr/training/warmstart.py
imports: from typing import List
  import numpy
  from tfaip.trainer.warmstart.warmstarter import WarmStarter
label_desc: Use image node_id 3 for calling the WarmStarterWithCodecAdaption obj's underlying member method code with example usage: obj.apply_weights(target_model, new_weights) without return types