code: def _log_feature_importance(model: "Booster") -> None:
      """Log feature importance."""
      feat_imps = model.feature_importance()
      feats = model.feature_name()
      fi_data = [
          [feat, feat_imp] for feat, feat_imp in zip(feats, feat_imps)
      ]
      table = wandb.Table(
          data=fi_data, columns=["Feature", "Importance"]
      )
      wandb.log(
          {
              "Feature Importance": wandb.plot.bar(
                  table,
                  "Feature",
                  "Importance",
                  title="Feature Importance",
              )
          },
          commit=False,
      )
  
file_path: wandb/wandb/integration/lightgbm/__init__.py
imports: from pathlib import Path
  from typing import TYPE_CHECKING, Callable
  import lightgbm
  from lightgbm import Booster
  import wandb
  from wandb.sdk.lib import telemetry
label_desc: Use image node_id 3 for calling a global function with example usage: _log_feature_importance(model) without return types