code: def test_weight(self, setup, kg, root, is_reverse):
      sampler = UniformSampler()
      for hop in kg.get_hops(
          Vertex(f"{URL}#{root}"), is_reverse=is_reverse
      ):
          assert sampler.get_weight(hop) == 1
  
imports: import itertools
  import pytest
  from pyrdf2vec.graphs import KG, Vertex
  from pyrdf2vec.samplers import UniformSampler
label_desc: Use image node_id 3 for calling the TestUniformSampler obj's underlying member method code with example usage: obj.test_weight(setup, kg, root, is_reverse) without return types