code: def test_wrong_weight_type_error():
      df = pd.DataFrame({"y": [1], "x": [2], "w": ["a"]})
      with pytest.raises(TypeError) as type_error:
          DFtoVW(
              df=df,
              label=SimpleLabel(label="y", weight="w"),
              features=Feature("x"),
          )
      expected = "In argument 'weight' of 'SimpleLabel', column 'w' should be either of the following type(s): 'int', 'float'."
      assert expected == str(type_error.value)
  
imports: import pytest
  import pandas
  from vowpalwabbit.dftovw import ContextualbanditLabel, DFtoVW, Feature, MulticlassLabel, MultiLabel, Namespace, SimpleLabel
label_desc: Use image node_id 20 for calling a global function with example usage: test_wrong_weight_type_error() without return types