code: def test_limited_descendants_at_distance(self):
      for distance, descendants in enumerate(
          [{0}, {1}, {2}, {3, 7}, {4, 8}, {5, 9}, {6, 10}]
      ):
          assert (
              nx.descendants_at_distance(self.G, 0, distance)
              == descendants
          )
      for distance, descendants in enumerate(
          [{2}, {3, 7}, {8}, {9}, {10}]
      ):
          assert (
              nx.descendants_at_distance(self.D, 2, distance)
              == descendants
          )
  
imports: from functools import partial
  import pytest
  import networkx
label_desc: Use image node_id 7 for calling the TestBreadthLimitedSearch obj's underlying member method code with example usage: obj.test_limited_descendants_at_distance() without return types