def METHOD_NAME(f_obs, i_obs, i_sig, f_calc, i_calc, wa, wb):
  k, weights, t = kwt(f_obs, i_obs, i_sig, f_calc, i_calc, wa, wb)
  trg = cctbx.xray.targets.shelxl_wght_ls(
    f_obs=f_obs,
    i_obs=i_obs,
    i_sig=i_sig,
    f_calc=f_calc,
    i_calc=i_calc,
    wa=wa,
    wb=wb)
  assert approx_equal(trg.scale_factor, k)
  assert approx_equal(trg.weights, weights)
  assert approx_equal(trg.target, t)
  return trg