code: def test_tokens2ids():
      converter = TokenIDConverter(["a", "b", "c", "<unk>"])
      assert converter.tokens2ids("abc") == [0, 1, 2]
  
file_path: espnet/test/espnet2/text/test_token_id_converter.py
imports: from pathlib import Path
  import numpy
  import pytest
  from espnet2.text.token_id_converter import TokenIDConverter
label_desc: Use image node_id 1 for calling a global function with example usage: test_tokens2ids() without return types