code: def test_build_sequence_matrix():
      inverse_vocabulary = {
          "<EOS>": 0,
          "<SOS>": 1,
          "<PAD>": 2,
          "<UNK>": 3,
          "a": 4,
          "b": 5,
          "c": 6,
      }
      sequences = pd.core.series.Series(["a b c", "c b a"])
      sequence_matrix = strings_utils.build_sequence_matrix(
          sequences,
          inverse_vocabulary,
          tokenizer_type="space",
          length_limit=10,
      )
      assert not (
          sequence_matrix.tolist()
          - np.array(
              [
                  [1, 4, 5, 6, 0, 2, 2, 2, 2, 2],
                  [1, 6, 5, 4, 0, 2, 2, 2, 2, 2],
              ]
          )
      ).any()
  
file_path: ludwig/tests/ludwig/utils/test_strings_utils.py
imports: from collections import defaultdict
  import numpy
  import pandas
  import pytest
  from ludwig.schema.features.preprocessing.text import TextPreprocessingConfig
  from ludwig.utils import strings_utils
label_desc: Use image node_id 11 for calling a global function with example usage: test_build_sequence_matrix() without return types