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