code: def validate_corpus(
      corpus_type, corpus_name, max_error=DEFAULT_MAX_ERROR
  ):
      global error_count
      global MAX_ERROR
      MAX_ERROR = max_error
      error_count = 0
      print(f"Validate {corpus_type} corpus: {corpus_name}")
      validate_corpus_type(corpus_type)
      validate_corpus_content(corpus_name)
  
      if error_count == 0:
          print("*** PASSED ***")
      else:
          print(f"*** FAILED *** with {error_count} errors")
  
file_path: underthesea/underthesea/corpus/validate_corpus.py
imports: import sys
  from os import listdir
  from os.path import join, basename
  import charset_normalizer
  from underthesea.feature_engineering.text import Text
  from underthesea.file_utils import DATASETS_FOLDER
  from underthesea.pipeline.word_tokenize import tokenize
label_desc: Use image node_id 10 for calling a global function with example usage: validate_corpus(corpus_type, corpus_name, max_error) without return types