code: def test_issue2385():
      """Test that IOB tags are correctly converted to BILUO tags."""
      # fix bug in labels with a 'b' character
      tags1 = ("B-BRAWLER", "I-BRAWLER", "I-BRAWLER")
      assert iob_to_biluo(tags1) == [
          "B-BRAWLER",
          "I-BRAWLER",
          "L-BRAWLER",
      ]
      # maintain support for iob1 format
      tags2 = ("I-ORG", "I-ORG", "B-ORG")
      assert iob_to_biluo(tags2) == ["B-ORG", "L-ORG", "U-ORG"]
      # maintain support for iob2 format
      tags3 = ("B-PERSON", "I-PERSON", "B-PERSON")
      assert iob_to_biluo(tags3) == ["B-PERSON", "L-PERSON", "U-PERSON"]
      # ensure it works with hyphens in the name
      tags4 = ("B-MULTI-PERSON", "I-MULTI-PERSON", "B-MULTI-PERSON")
      assert iob_to_biluo(tags4) == [
          "B-MULTI-PERSON",
          "L-MULTI-PERSON",
          "U-MULTI-PERSON",
      ]
  
imports: import logging
  import random
  import pytest
  from numpy.testing import assert_equal
  from spacy import registry, util
  from spacy.attrs import ENT_IOB
  from spacy.lang.en import English
  from spacy.lang.it import Italian
  from spacy.language import Language
  from spacy.lookups import Lookups
  from spacy.pipeline import EntityRecognizer
  from spacy.pipeline._parser_internals.ner import BiluoPushDown
  from spacy.pipeline.ner import DEFAULT_NER_MODEL
  from spacy.tokens import Doc, Span
  from spacy.training import Example, iob_to_biluo, split_bilu_label
  from spacy.vocab import Vocab
  from ..util import make_tempdir
label_desc: Use image node_id 9 for calling a global function with example usage: test_issue2385() without return types