code: def test_weight(
      self, setup, kg, root, is_reverse, alpha, is_inverse, is_split
  ):
      sampler = PageRankSampler(
          alpha=alpha, inverse=is_inverse, split=is_split
      )
      sampler.fit(kg)
      for hop in kg.get_hops(
          Vertex(f"{URL}#{root}"), is_reverse=is_reverse
      ):
          assert sampler.get_weight(hop) <= alpha
  
file_path: pyRDF2Vec/tests/samplers/test_pagerank.py
imports: import itertools
  import pytest
  from pyrdf2vec.graphs import KG, Vertex
  from pyrdf2vec.samplers import PageRankSampler
label_desc: Use image node_id 4 for calling the TestPageRankSampler obj's underlying member method code with example usage: obj.test_weight(setup, kg, root, is_reverse, alpha, is_inverse, is_split) without return types