code: def _remove_spaces(
      tokens: List[spacy.tokens.Token],
  ) -> List[spacy.tokens.Token]:
      return [token for token in tokens if not token.is_space]
  
file_path: allennlp/allennlp/data/tokenizers/spacy_tokenizer.py
imports: from typing import List, Optional
  import spacy
  from spacy.tokens import Doc
  from allennlp.common.util import get_spacy_model
  from allennlp.data.tokenizers.token_class import Token
  from allennlp.data.tokenizers.tokenizer import Tokenizer
label_desc: Use image node_id 1 for calling a global function with example usage: _remove_spaces(tokens) and returns: unknown