code: def test_feature_importances_from_array():
      feature_importances = np.array([0.12, 0.10, 0.8, 0.06, 0.03])
      plot.feature_importances(feature_importances)
  
imports: from functools import partial
  import sys
  from unittest.mock import Mock
  import numpy
  from matplotlib.testing.decorators import image_comparison
  from sklearn_evaluation import plot
label_desc: Use image node_id 18 for calling a global function with example usage: test_feature_importances_from_array() without return types