code: def check_validity_of_conll_bioes(bioes_filepath):
      dataset_type = utils.get_basename_without_extension(
          bioes_filepath
      ).split("_")[0]
      print(
          "Checking validity of CONLL BIOES format... ".format(
              dataset_type
          ),
          end="",
      )
  
      input_conll_file = codecs.open(bioes_filepath, "r", "UTF-8")
      labels_bioes = []
      labels_bio = []
      for line in input_conll_file:
          split_line = line.strip().split(" ")
          # New sentence
          if (
              len(split_line) == 0
              or len(split_line[0]) == 0
              or "-DOCSTART-" in split_line[0]
          ):
              if check_bio_bioes_compatibility(
                  labels_bio, labels_bioes
              ):
                  continue
              return False
          label_bioes = split_line[-1]
          label_bio = split_line[-2]
          labels_bioes.append(label_bioes)
          labels_bio.append(label_bio)
      input_conll_file.close()
      if check_bio_bioes_compatibility(labels_bio, labels_bioes):
          print("Done.")
          return True
      return False
  
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 11 for calling a global function with example usage: check_validity_of_conll_bioes(bioes_filepath) and returns: False, True, False