code: def load_model(
      cls,
      model_path: str,
      custom_objects: Dict = None,
      encoding: str = "utf-8",
  ) -> Union["ABCLabelingModel", "ABCClassificationModel"]:
      if custom_objects is None:
          custom_objects = {}
  
      if cls.__name__ not in custom_objects:
          custom_objects[cls.__name__] = cls
  
      model_config_path = os.path.join(model_path, "model_config.json")
      model_config = json.loads(
          open(model_config_path, "r", encoding=encoding).read()
      )
      model = load_data_object(model_config, custom_objects)
  
      model.embedding = load_data_object(
          model_config["embedding"], custom_objects
      )
      model.text_processor = load_data_object(
          model_config["text_processor"], custom_objects
      )
      model.label_processor = load_data_object(
          model_config["label_processor"], custom_objects
      )
  
      tf_model_str = json.dumps(model_config["tf_model"])
  
      model.tf_model = tf.keras.models.model_from_json(
          tf_model_str, custom_objects=kashgari.custom_objects
      )
  
      if isinstance(model.tf_model.layers[-1], KConditionalRandomField):
          model.crf_layer = model.tf_model.layers[-1]
  
      model.tf_model.load_weights(
          os.path.join(model_path, "model_weights.h5")
      )
      model.embedding.embed_model.load_weights(
          os.path.join(model_path, "embed_model_weights.h5")
      )
      return model
  
file_path: Kashgari/kashgari/tasks/abs_task_model.py
imports: import json
  import os
  import pathlib
  from abc import ABC, abstractmethod
  from typing import TYPE_CHECKING, Any, Dict, Union
  import tensorflow
  import kashgari
  from kashgari.embeddings import ABCEmbedding
  from kashgari.layers import KConditionalRandomField
  from kashgari.logger import logger
  from kashgari.processors.abc_processor import ABCProcessor
  from kashgari.utils import load_data_object
label_desc: Use image node_id 5 for calling the ABCTaskModel obj's underlying member method code with example usage: obj.load_model(cls, model_path, custom_objects, encoding) and returns: model