class_docstr: Store models in cloud and fetch them when needed.
class_docstr_tok: ["Store","models","in","cloud","and","fetch","them","when","needed","."]
docstr: Downloads a model that has been persisted to cloud storage.
docstr_tok: ["Downloads","a","model","that","has","been","persisted","to","cloud","storage","."]
code: def retrieve(self, model_name: Text, target_path: Text) -> None:
      """Downloads a model that has been persisted to cloud storage."""
      tar_name = model_name
  
      if not model_name.endswith("tar.gz"):
          # ensure backward compatibility
          tar_name = self._tar_name(model_name)
  
      self._retrieve_tar(tar_name)
      self._copy(os.path.basename(tar_name), target_path)
  
imports: import abc
  import logging
  import os
  import shutil
  from typing import Optional, Text, Tuple, TYPE_CHECKING
  import rasa.shared.utils.common
  import rasa.utils.common
label_desc: Use image node_id 2 for calling the Persistor obj's underlying member method code with example usage: obj.retrieve(model_name, target_path) without return types