code: def test_slates_label():
      model = Workspace(slates=True, quiet=True)
      slates_shared_label = vowpalwabbit.SlatesLabel.from_example(
          model.example("slates shared 0.8 | shared_0 shared_1")
      )
      slates_action_label = vowpalwabbit.SlatesLabel.from_example(
          model.example("slates action 1 | action_3")
      )
      slates_slot_label = vowpalwabbit.SlatesLabel.from_example(
          model.example("slates slot 1:0.8,0:0.1,2:0.1 | slot_0")
      )
      assert (
          slates_shared_label.type
          == vowpalwabbit.SlatesLabelType.SHARED
      )
      assert slates_shared_label.labeled == True
      assert isclose(slates_shared_label.cost, 0.8)
      assert str(slates_shared_label) == "slates shared 0.8"
      assert (
          slates_action_label.type
          == vowpalwabbit.SlatesLabelType.ACTION
      )
      assert slates_action_label.labeled == False
      assert slates_action_label.weight == 1.0
      assert slates_action_label.slot_id == 1
      assert str(slates_action_label) == "slates action 1"
      assert slates_slot_label.type == vowpalwabbit.SlatesLabelType.SLOT
      assert slates_slot_label.labeled == True
      assert slates_slot_label.probabilities[0].action == 1
      assert isclose(slates_slot_label.probabilities[0].score, 0.8)
      assert slates_slot_label.probabilities[1].action == 0
      assert isclose(slates_slot_label.probabilities[1].score, 0.1)
      assert slates_slot_label.probabilities[2].action == 2
      assert isclose(slates_slot_label.probabilities[2].score, 0.1)
      assert str(slates_slot_label) == "slates slot 1:0.8,0:0.1,2:0.1"
      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 16 for calling a global function with example usage: test_slates_label() without return types