code: def get_corpus_path(name: str) -> [str, None]:
      
      db = TinyDB(corpus_db_path())
      temp = Query()
  
      if len(db.search(temp.name == name)) > 0:
          path = get_full_data_path(db.search(temp.name == name)[0]["file"])
          db.close()
  
          if not os.path.exists(path):
              download(name)
  
          return path
  
      return None
docs: Get corpus path
  
      :param string name: corpus name