code: def load_model(
      model_path: str,
  ) -> Union["ABCLabelingModel", "ABCClassificationModel"]:
      warnings.warn(
          "The 'load_model' function is deprecated, "
          "use 'XX_Model.load_model' instead",
          DeprecationWarning,
          2,
      )
      from kashgari.tasks.abs_task_model import ABCTaskModel
  
      return ABCTaskModel.load_model(model_path=model_path)
  
file_path: Kashgari/kashgari/utils/__init__.py
imports: import warnings
  import tensorflow
  from typing import TYPE_CHECKING, Union
  from tensorflow.keras.utils import CustomObjectScope
  from kashgari import custom_objects
  from .data import get_list_subset
  from .data import unison_shuffled_copies
  from .multi_label import MultiLabelBinarizer
  from .serialize import load_data_object
  from .model import convert_to_saved_model
label_desc: Use image node_id 2 for calling a global function with example usage: load_model(model_path) and returns: ABCTaskModel