code: def test_weight(self, setup, kg, root):
      sampler = WideSampler()
      sampler.fit(kg)
      for hop in kg.get_hops(Vertex(f"{URL}#{root}")):
          weight = sampler.get_weight(hop)
          assert weight > 0
          assert isinstance(weight, float)
  
file_path: pyRDF2Vec/tests/samplers/test_wide.py
imports: import itertools
  import pytest
  from pyrdf2vec.graphs import KG, Vertex
  from pyrdf2vec.samplers import WideSampler
label_desc: Use image node_id 4 for calling the TestWideSampler obj's underlying member method code with example usage: obj.test_weight(setup, kg, root) without return types