code: def token2id(self, token):
      # Iseue 181: TokenizerFast have convert_tokens_to_ids but not convert_tokens_to_id
      if "TokenizerFast" in self.tokenizer.__class__.__name__:
          # New transformers API
          return self.model.tokenizer.convert_tokens_to_ids(token)
      else:
          # Old transformers API
          return self.model.tokenizer._convert_token_to_id(token)
  
file_path: nlpaug/nlpaug/model/lang_models/fill_mask_transformers.py
imports: import logging
  from nlpaug.model.lang_models import LanguageModels
label_desc: Use image node_id 8 for calling the FmTransformers obj's underlying member method code with example usage: obj.token2id(token) and returns: self, self