code: def load_processors_from_model(
      model_path: str,
  ) -> Tuple[ABCProcessor, ABCProcessor]:
      with open(
          os.path.join(model_path, "model_config.json"), "r"
      ) as f:
          model_config = json.loads(f.read())
          text_processor: ABCProcessor = load_data_object(
              model_config["text_processor"]
          )
          label_processor: ABCProcessor = load_data_object(
              model_config["label_processor"]
          )
  
          sequence_length_from_saved_model = model_config["config"].get(
              "sequence_length", None
          )
          text_processor._sequence_length_from_saved_model = (
              sequence_length_from_saved_model
          )
          label_processor._sequence_length_from_saved_model = (
              sequence_length_from_saved_model
          )
  
          return text_processor, label_processor
  
imports: import json
  import os
  from typing import Tuple
  from kashgari.processors.abc_processor import ABCProcessor
  from kashgari.utils.serialize import load_data_object
label_desc: Use image node_id 1 for calling a global function with example usage: load_processors_from_model(model_path) and returns: text_processor,  label_processor