code: def plot_feature_importance_by_metric(
      model: ModelBridge,
  ) -> AxPlotConfig:
      """Wrapper method to convert plot_feature_importance_by_metric_plotly to
      AxPlotConfig"""
      return AxPlotConfig(
          data=plot_feature_importance_by_metric_plotly(model),
          plot_type=AxPlotTypes.GENERIC,
      )
  
file_path: Ax/ax/plot/feature_importances.py
imports: from logging import Logger
  from typing import Any, Dict, Optional, Union
  import numpy
  import pandas
  import plotly.graph_objs
  from ax.exceptions.core import NoDataError
  from ax.modelbridge import ModelBridge
  from ax.plot.base import AxPlotConfig, AxPlotTypes
  from ax.plot.helper import compose_annotation
  from ax.utils.common.logger import get_logger
  from plotly import subplots
label_desc: Use image node_id 4 for calling a global function with example usage: plot_feature_importance_by_metric(model) and returns: AxPlotConfig