class_docstr: Check, install, and call TLGU.
docstr: Check if tlgu downloaded, if not download it.
docstr_tok: ["Check","if","tlgu","downloaded",",","if","not","download","it","."]
code: def _check_and_download_tlgu_source(self):
      """Check if tlgu downloaded, if not download it."""
      path = make_cltk_path("grc/software/grc_software_tlgu/tlgu.h")
      if not os.path.isfile(path):
          dl_msg = f"This part of the CLTK depends upon TLGU, software written by Dimitri Marinakis `<http://tlgu.carmen.gr/>`_."
          print(dl_msg)
          repo_url = "https://github.com/cltk/grc_software_tlgu.git"
          dl_dir = os.path.split(path)[0]
          dl_question = f"Do you want to download TLGU from '{repo_url}' to '{dl_dir}'?"
          if self.interactive:
              do_download = query_yes_no(question=dl_question)
          else:
              do_download = True
          if do_download:
              fetch_corpus = FetchCorpus(language="grc")
              fetch_corpus.import_corpus(
                  corpus_name="grc_software_tlgu"
              )
          else:
              raise CLTKException(
                  f"TLGU software required for this class to work."
              )
  
file_path: cltk/src/cltk/corpora/grc/tlg/tlgu.py
imports: import os
  import subprocess
  from cltk.core.cltk_logger import logger
  from cltk.core.exceptions import CLTKException
  from cltk.data.fetch import FetchCorpus
  from cltk.utils.file_operations import make_cltk_path
  from cltk.utils.utils import query_yes_no
label_desc: Use image node_id 2 for calling the TLGU obj's underlying member method code with example usage: obj._check_and_download_tlgu_source() without return types