code: def test_feature_importances_w_subestimators(path_to_tests_static):
      rf = Mock()
      tree_1 = Mock()
      tree_1.feature_importances_ = np.array(
          [0.12, 0.10, 0.8, 0.06, 0.03]
      )
      tree_2 = Mock()
      tree_2.feature_importances_ = np.array(
          [0.10, 0.10, 0.8, 0.06, 0.01]
      )
      tree_3 = Mock()
      tree_3.feature_importances_ = np.array(
          [0.09, 0.01, 0.9, 0.12, 0.02]
      )
      tree_4 = Mock()
      tree_4.feature_importances_ = np.array(
          [0.12, 0.10, 0.8, 0.06, 0.01]
      )
      rf.estimators_ = [tree_1, tree_2, tree_3, tree_4]
      rf.feature_importances_ = np.array([0.12, 0.10, 0.8, 0.06, 0.03])
      with open(
          path_to_tests_static / "table_w_subestimator.txt", "r"
      ) as f:
          expected = f.read()
      assert expected == str(table.feature_importances(rf))
  
file_path: sklearn-evaluation/tests/test_table.py
imports: from unittest.mock import Mock
  import pytest
  import numpy
  from sklearn_evaluation import table
label_desc: Use image node_id 5 for calling a global function with example usage: test_feature_importances_w_subestimators(path_to_tests_static) without return types