code: def test_leaves():
      """test the leaves_of_a_subtree() method"""
      f = simple_forest()
      assert f.leaves_of_a_subtree([0, 1]) == True
      assert f.leaves_of_a_subtree([0, 3]) == False
      assert f.leaves_of_a_subtree([1, 3]) == False
      assert f.leaves_of_a_subtree([0, 1, 3]) == True
      assert f.leaves_of_a_subtree([1]) == True
  
file_path: nipy/nipy/algorithms/graph/tests/test_forest.py
imports: import numpy
  from ..forest import Forest
label_desc: Use image node_id 11 for calling a global function with example usage: test_leaves() without return types