code: def test_find_spans():
      """
      Test various raw -> span manipulations
      """
      raw = [
          "u",
          "n",
          "b",
          "a",
          "n",
          " ",
          "m",
          "o",
          "x",
          " ",
          "o",
          "p",
          "a",
          "l",
      ]
      assert utils.find_spans(raw) == [(0, 14)]
  
      raw = [
          "u",
          "n",
          "b",
          "a",
          "n",
          " ",
          "m",
          "o",
          "x",
          " ",
          "o",
          "p",
          "a",
          "l",
          "<PAD>",
      ]
      assert utils.find_spans(raw) == [(0, 14)]
  
      raw = [
          "<PAD>",
          "u",
          "n",
          "b",
          "a",
          "n",
          " ",
          "m",
          "o",
          "x",
          " ",
          "o",
          "p",
          "a",
          "l",
          "<PAD>",
      ]
      assert utils.find_spans(raw) == [(1, 15)]
  
      raw = [
          "<PAD>",
          "u",
          "n",
          "b",
          "a",
          "n",
          " ",
          "m",
          "o",
          "x",
          " ",
          "o",
          "p",
          "a",
          "l",
      ]
      assert utils.find_spans(raw) == [(1, 15)]
  
      raw = [
          "<PAD>",
          "u",
          "n",
          "b",
          "a",
          "n",
          "<PAD>",
          "m",
          "o",
          "x",
          " ",
          "o",
          "p",
          "a",
          "l",
      ]
      assert utils.find_spans(raw) == [(1, 6), (7, 15)]
  
file_path: stanza/stanza/tests/tokenization/test_tokenize_utils.py
imports: import pytest
  import stanza
  from stanza import Pipeline
  from stanza.tests import *
  from stanza.models.common import doc
  from stanza.models.tokenization import data
  from stanza.models.tokenization import utils
label_desc: Use image node_id 1 for calling a global function with example usage: test_find_spans() without return types