code: def test_get_neighbors(self, setup):
      alice_predicates = [
          neighbor
          for neighbor in LOCAL_KG.get_neighbors(Vertex(f"{URL}#Alice"))
      ]
      assert len(alice_predicates) == 2
      assert Vertex(f"{URL}#Alice") == alice_predicates[0].vprev
      assert Vertex(f"{URL}#Bob") and Vertex(f"{URL}#Dean") in {
          alice_predicates[0].vnext,
          alice_predicates[1].vnext,
      }
      assert Vertex(f"{URL}#Alice") == alice_predicates[1].vprev
      assert (
          len(
              [
                  neighbor
                  for neighbor in LOCAL_KG.get_neighbors(
                      Vertex(f"{URL}#Alice"), is_reverse=True
                  )
              ]
          )
          == 0
      )
  
      bob_predicates = [
          neighbor
          for neighbor in LOCAL_KG.get_neighbors(Vertex(f"{URL}#Bob"))
      ]
      assert len(bob_predicates) == 1
      assert Vertex(f"{URL}#Bob") == bob_predicates[0].vprev
      assert Vertex(f"{URL}#Casper") == bob_predicates[0].vnext
  
      bob_predicates = [
          neighbor
          for neighbor in LOCAL_KG.get_neighbors(
              Vertex(f"{URL}#Bob"), is_reverse=True
          )
      ]
      assert len(bob_predicates) == 1
      assert Vertex(f"{URL}#Bob") == bob_predicates[0].vnext
      assert Vertex(f"{URL}#Alice") == bob_predicates[0].vprev
  
      dean_predicates = [
          neighbor
          for neighbor in LOCAL_KG.get_neighbors(
              Vertex(f"{URL}#Dean"), is_reverse=True
          )
      ]
      assert len(dean_predicates) == 1
      assert Vertex(f"{URL}#Dean") == dean_predicates[0].vnext
      assert Vertex(f"{URL}#Alice") == dean_predicates[0].vprev
      assert (
          len(
              [
                  neighbor
                  for neighbor in LOCAL_KG.get_neighbors(
                      Vertex(f"{URL}#Dean")
                  )
              ]
          )
          == 0
      )
  
imports: import numpy
  import pytest
  from pyrdf2vec.graphs import KG, Vertex
label_desc: Use image node_id 7 for calling the TestKG obj's underlying member method code with example usage: obj.test_get_neighbors(setup) without return types