code: def test_feature_importances(path_to_tests_static):
      model = Mock()
      model.feature_importances_ = np.array(
          [0.12, 0.10, 0.8, 0.06, 0.03]
      )
      with open(path_to_tests_static / "table.txt", "r") as f:
          expected = f.read()
      assert expected == str(table.feature_importances(model))
  
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 1 for calling a global function with example usage: test_feature_importances(path_to_tests_static) without return types