code: def validate_sentence(current_window, min_window):
      """
      Sentence validation from: LSTM-LID
      GitHub: https://github.com/AU-DIS/LSTM_langid/blob/main/src/dataset_creator.py
      """
      if len(current_window) < min_window:
          return False
      return True
  
imports: import argparse
  import json
  import logging
  import os
  import re
  import sys
  from pathlib import Path
  from random import randint, random, shuffle
  from string import digits
  from tqdm import tqdm
  from stanza.models.common.constant import treebank_to_langid
label_desc: Use image node_id 8 for calling a global function with example usage: validate_sentence(current_window, min_window) and returns: True, False