code: def test_impose_reweighted_mean():
      x0 = [1, 2, 3, 4, 5]
      w0 = [3, 1, 1, 1, 1]
      m = 3.5
  
      w = impose_reweighted_mean(m, x0, w0)
      assert almostEqual(mean(x0, w), m)
  
imports: from mystic.math.measures import *
  from mystic.math import almostEqual
label_desc: Use image node_id 1 for calling a global function with example usage: test_impose_reweighted_mean() without return types