code: def _trim(self, names: List[str]):
      names = super()._trim(names)
  
      # Manually trim to support older checkpoints
      to_trim = ["CalamariGraph/", "keras_debug_model/CalamariGraph/"]
      for tt in to_trim:
          names = [
              name[len(tt) :] if name.startswith(tt) else name
              for name in names
          ]
  
      def convert(name: str):
          if name.startswith("bi_lstm_layer_1/"):
              name = name.replace("bi_lstm_layer_1/", "bi_lstm_layer/")
          return name
  
      names = [convert(name) for name in names]
  
      return names
  
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 2 for calling the WarmStarterWithCodecAdaption obj's underlying member method code with example usage: obj._trim(names) and returns: names, name