code: def is_token_in_pretrained_embeddings(
      token, all_pretrained_tokens, parameters
  ):
      return (
          token in all_pretrained_tokens
          or parameters["check_for_lowercase"]
          and token.lower() in all_pretrained_tokens
          or parameters["check_for_digits_replaced_with_zeros"]
          and re.sub("\d", "0", token) in all_pretrained_tokens
          or parameters["check_for_lowercase"]
          and parameters["check_for_digits_replaced_with_zeros"]
          and re.sub("\d", "0", token.lower()) in all_pretrained_tokens
      )
  
file_path: NeuroNER/neuroner/utils_nlp.py
imports: import codecs
  import os
  import re
  import numpy
  from neuroner import utils
label_desc: Use image node_id 3 for calling a global function with example usage: is_token_in_pretrained_embeddings(token, all_pretrained_tokens, parameters) and returns: unknown