code: def test_label_mapping_mixin() -> None:
      class TestLabelMappingMixin(BaseModel, LabelMappingMixin):
          server_settings: dict = Field(default_factory=dict)
  
      my_class = TestLabelMappingMixin(
          server_settings={
              "options": [{"value": "label1"}, {"value": "label2"}]
          }
      )
      assert my_class.__all_labels__ == ["label1", "label2"]
      assert my_class.__label2id__ == {"label1": 0, "label2": 1}
      assert my_class.__id2label__ == {0: "label1", 1: "label2"}
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_label_mapping_mixin() without return types