original_docstring:  Check correctness of specified sequences (texts) and raise `ValueError` if wrong values are found.
  
          :param X: sequences for checking (list, tuple or numpy.ndarray object, containing the unicode strings).
          :param checked_object_name: printed name of object containing sequences.
  
          
docstring: Check correctness of specified sequences (texts) and raise `ValueError` if wrong values are found.
docstring_tokens: Check correctness of specified sequences ( texts ) and raise ` ValueError ` if wrong values are found .
code: def check_X(X, checked_object_name='X'):
          """ Check correctness of specified sequences (texts) and raise `ValueError` if wrong values are found.
  
          :param X: sequences for checking (list, tuple or numpy.ndarray object, containing the unicode strings).
          :param checked_object_name: printed name of object containing sequences.
  
          """
          if (not isinstance(X, list)) and (not isinstance(X, tuple)) and (not isinstance(X, np.ndarray)):
              raise ValueError(f'`{type(X)}` is wrong type for `{checked_object_name}`.')
          if isinstance(X, np.ndarray):
              if len(X.shape) != 1:
                  raise ValueError(f'`{checked_object_name}` must be a 1-D array!')
          n = len(X)
          if n == 0:
              raise ValueError(f'{checked_object_name} is empty!')
          for sample_ind in range(n):
              if not hasattr(X[sample_ind], 'split'):
                  raise ValueError(f'Sample {sample_ind} of `{checked_object_name}` is wrong! This sample have not the `split` method.')
code_tokens: def check_X ( X , checked_object_name = 'X' ) : if ( not isinstance ( X , list ) ) and ( not isinstance ( X , tuple ) ) and ( not isinstance ( X , np . ndarray ) ) : raise ValueError ( f'`{type(X)}` is wrong type for `{checked_object_name}`.' ) if isinstance ( X , np . ndarray ) : if len ( X . shape ) != 1 : raise ValueError ( f'`{checked_object_name}` must be a 1-D array!' ) n = len ( X ) if n == 0 : raise ValueError ( f'{checked_object_name} is empty!' ) for sample_ind in range ( n ) : if not hasattr ( X [ sample_ind ] , 'split' ) : raise ValueError ( f'Sample {sample_ind} of `{checked_object_name}` is wrong! This sample have not the `split` method.' )
short_docstring: Check correctness of specified sequences (texts) and raise `ValueError` if wrong values are found.
short_docstring_tokens: Check correctness of specified sequences ( texts ) and raise ` ValueError ` if wrong values are found .
comment: """ Check correctness of specified sequences (texts) and raise `ValueError` if wrong values are found.
  
          :param X: sequences for checking (list, tuple or numpy.ndarray object, containing the unicode strings).
          :param checked_object_name: printed name of object containing sequences.
  
          """