code: def dynamic_class_import(class_path):
      """
      Will dynamically import a class from a string path.
  
      :param class_path: string with class path
      :return: class
      """
      # Split first occurrence of path
      try:
          tmp = class_path.split(".")
          module_path = ".".join(tmp[0:-1])
          package = __import__(module_path)
          return reduce(getattr, tmp[1:], package)
      except Exception as e:
          log.exception(e)
          log.error(LOGMSG_ERR_FAB_ADDON_IMPORT, class_path, e)
  
imports: from __future__ import annotations
  import logging
  from functools import reduce
  from typing import TYPE_CHECKING
  from flask import Blueprint, current_app, url_for
  from flask_appbuilder import __version__
  from flask_appbuilder.babel.manager import BabelManager
  from flask_appbuilder.const import LOGMSG_ERR_FAB_ADD_PERMISSION_MENU, LOGMSG_ERR_FAB_ADD_PERMISSION_VIEW, LOGMSG_ERR_FAB_ADDON_IMPORT, LOGMSG_ERR_FAB_ADDON_PROCESS, LOGMSG_INF_FAB_ADD_VIEW, LOGMSG_INF_FAB_ADDON_ADDED, LOGMSG_WAR_FAB_VIEW_EXISTS
  from flask_appbuilder.filters import TemplateFilters
  from flask_appbuilder.menu import Menu
  from flask_appbuilder.views import IndexView, UtilView
  from airflow import settings
  from airflow.configuration import conf
  from airflow.www.extensions.init_auth_manager import get_auth_manager, init_auth_manager
label_desc: Use image node_id 1 for calling a global function with example usage: dynamic_class_import(class_path) and returns: reduce