code: def is_base_token(token):
      """Check if the token is a base token.
  
      :param token: The token.
      :type token: spacy.tokens.token.Token
      :return: True if the token is a base token, False otherwise.
      :rtype: bool
      """
      return not token.is_stop and not token.is_punct
  
file_path: responsible-ai-toolbox/responsibleai_text/responsibleai_text/utils/feature_extractors.py
imports: import re
  from typing import List, Optional, Union
  import pandas
  import spacy
  from negspacy.termsets import termset
  from tqdm import tqdm
  from nlp_feature_extractors import attribute_extractors
  from responsibleai_text.common.constants import ModelTask, QuestionAnsweringFields
label_desc: Use image node_id 9 for calling a global function with example usage: is_base_token(token) and returns: unknown