class_docstr: Import CLTK corpora.
class_docstr_tok: ["Import","CLTK","corpora","."]
docstr: Setup corpus importing.
  
  `testing` is a hack to check a tmp .yaml file to look at
  or local corpus. This keeps from overwriting local. A
  better idea is probably to refuse to overwrite the .yaml.
docstr_tok: ["Setup","corpus","importing",".","`","testing","`","is","a","hack","to","check","a","tmp",".yaml","file","to","look","at","or","local","corpus",".","This","keeps","from","overwriting","local",".","A","better","idea","is","probably","to","refuse","to","overwrite","the",".yaml","."]
code: def __init__(self, language: str, testing: bool = False):
      """Setup corpus importing.
  
      `testing` is a hack to check a tmp .yaml file to look at
      or local corpus. This keeps from overwriting local. A
      better idea is probably to refuse to overwrite the .yaml.
      """
  
      self.language = language.lower()
      if self.language != "multilingual":
          get_lang(iso_code=language)
  
      assert isinstance(
          testing, bool
      ), "``testing`` parameter must be boolean type"
      self.testing = testing
  
      self.user_defined_corpora = self._get_user_defined_corpora()
      self.library_defined_corpora = self._get_library_defined_corpora()
      self.all_corpora_for_lang = (
          self.user_defined_corpora + self.library_defined_corpora
      )
  
imports: import errno
  import os
  import shutil
  import sys
  from urllib.parse import urljoin
  import yaml
  from git import RemoteProgress, Repo
  from cltk.core.cltk_logger import logger
  from cltk.core.exceptions import CorpusImportError
  from cltk.languages.utils import get_lang
  from cltk.utils.utils import CLTK_DATA_DIR
label_desc: Use image node_id 1 to create a new FetchCorpus object  with example: obj = FetchCorpus(language, testing)