code: def test_tagged_corpus_make_label_dictionary():
      sentence_1 = Sentence("sentence 1").add_label("label", "class_1")
  
      sentence_2 = Sentence("sentence 2").add_label("label", "class_2")
  
      sentence_3 = Sentence("sentence 3").add_label("label", "class_1")
  
      corpus: Corpus = Corpus(
          FlairDatapointDataset([sentence_1, sentence_2, sentence_3]),
          FlairDatapointDataset([]),
          FlairDatapointDataset([]),
      )
  
      label_dict = corpus.make_label_dictionary("label", add_unk=True)
  
      assert len(label_dict) == 3
      assert "<unk>" in label_dict.get_items()
      assert "class_1" in label_dict.get_items()
      assert "class_2" in label_dict.get_items()
  
      with pytest.warns(
          DeprecationWarning
      ):  # test to make sure the warning comes, but function works
          corpus.make_tag_dictionary("label")
  
imports: import os
  import pytest
  import flair
  from flair.data import Corpus, Dictionary, Label, Sentence
  from flair.datasets import ColumnCorpus, FlairDatapointDataset, SentenceDataset
label_desc: Use image node_id 10 for calling a global function with example usage: test_tagged_corpus_make_label_dictionary() without return types