code: def tokens2ids(self, tokens: Iterable[str]) -> List[int]:
      return [self.token2id.get(i, self.unk_id) for i in tokens]
  
file_path: espnet/espnet2/text/token_id_converter.py
imports: from pathlib import Path
  from typing import Dict, Iterable, List, Union
  import numpy
  from typeguard import check_argument_types
label_desc: Use image node_id 4 for calling the TokenIDConverter obj's underlying member method code with example usage: obj.tokens2ids(tokens) and returns: unknown