code: def test_CBEvalLabel():
      model = Workspace(cb=4, eval=True, quiet=True)
      cbel = vowpalwabbit.CBEvalLabel.from_example(
          model.example("3 1:10:0.5 |")
      )
      assert cbel.action == 3
      assert cbel.cb_label.weight == 1.0
      assert cbel.cb_label.costs[0].action == 1
      assert cbel.cb_label.costs[0].probability == 0.5
      assert cbel.cb_label.costs[0].partial_prediction == 0
      assert cbel.cb_label.costs[0].cost == 10.0
      assert str(cbel) == "3 1:10.0:0.5"
      del model
  
imports: import os
  from pathlib import Path
  import vowpalwabbit
  from vowpalwabbit import Workspace
  import pytest
  import warnings
  import filecmp
label_desc: Use image node_id 11 for calling a global function with example usage: test_CBEvalLabel() without return types