class_docstr: CLTK's wrapper for the Stanza project.
class_docstr_tok: ["CLTK","'s","wrapper","for","the","Stanza","project","."]
docstr: Check whether for chosen language, optional
  treebank value is valid.
  
  >>> stanza_wrapper = StanzaWrapper(language='grc', treebank='proiel', stanza_debug_level="INFO", interactive=False, silent=True)
  >>> stanza_wrapper._is_valid_treebank()
  True
docstr_tok: ["Check","whether","for","chosen","language",",","optional","treebank","value","is","valid",".",">",">",">","stanza_wrapper","=","StanzaWrapper","(","language='grc","'",",","treebank='proiel","'",",","stanza_debug_level=","''","INFO","''",",","interactive=False",",","silent=True",")",">",">",">","stanza_wrapper._is_valid_treebank","(",")","True"]
code: def _is_valid_treebank(self) -> bool:
      """Check whether for chosen language, optional
      treebank value is valid.
  
      >>> stanza_wrapper = StanzaWrapper(language='grc', treebank='proiel', stanza_debug_level="INFO", interactive=False, silent=True)
      >>> stanza_wrapper._is_valid_treebank()
      True
      """
      possible_treebanks = self.map_code_treebanks[self.stanza_code]
      return self.treebank in possible_treebanks
  
file_path: cltk/src/cltk/dependency/stanza_wrapper.py
imports: import logging
  import os
  from typing import Dict, Optional
  import stanza
  from stanza.models.common.constant import lang2lcode
  from stanza.resources.prepare_resources import default_treebanks
  from cltk.core.exceptions import CLTKException, UnimplementedAlgorithmError, UnknownLanguageError
  from cltk.utils import file_exists, query_yes_no, suppress_stdout
label_desc: Use image node_id 7 for calling the StanzaWrapper obj's underlying member method code with example usage: obj._is_valid_treebank() and returns: unknown