code: def test_extract(
      self, setup, kg, root, max_depth, max_walks, with_reverse
  ):
      root = f"{URL}#{root}"
      walks = WalkletWalker(
          max_depth, max_walks, with_reverse=with_reverse
      )._extract(kg, Vertex(root))[root]
      for walk in walks:
          assert len(walk) == 1 or len(walk) == 2
          if not with_reverse:
              assert walk[0] == root
  
imports: import itertools
  import pytest
  from pyrdf2vec.graphs import KG, Vertex
  from pyrdf2vec.walkers import WalkletWalker
label_desc: Use image node_id 2 for calling the TestWalkletWalker obj's underlying member method code with example usage: obj.test_extract(setup, kg, root, max_depth, max_walks, with_reverse) without return types