code: def test_limited_bfs_tree(self):
      T = nx.bfs_tree(self.G, source=3, depth_limit=1)
      assert sorted(T.edges()) == [(3, 2), (3, 4)]
  
imports: from functools import partial
  import pytest
  import networkx
label_desc: Use image node_id 4 for calling the TestBreadthLimitedSearch obj's underlying member method code with example usage: obj.test_limited_bfs_tree() without return types