code: def test_tree_subtree_active_features(
      tree: _FanovaTree, node_index: NodeIndex, expected: List[bool]
  ) -> None:
      active_features: numpy.ndarray = (
          tree._subtree_active_features[node_index] == expected
      )
      assert active_features.all()
  
file_path: optuna/tests/importance_tests/fanova_tests/test_tree.py
imports: import math
  from typing import Dict
  from typing import List
  from typing import Tuple
  from unittest.mock import Mock
  import numpy
  import pytest
  from optuna.importance._fanova._tree import _FanovaTree
label_desc: Use image node_id 9 for calling a global function with example usage: test_tree_subtree_active_features(tree, node_index, expected) without return types