code: def get_persistor(name: Text) -> Optional["Persistor"]:
      """Returns an instance of the requested persistor.
  
      Currently, `aws`, `gcs`, `azure` and providing module paths are supported remote
      storages.
      """
      if name == "aws":
          return AWSPersistor(
              os.environ.get("BUCKET_NAME"),
              os.environ.get("AWS_ENDPOINT_URL"),
          )
      if name == "gcs":
          return GCSPersistor(os.environ.get("BUCKET_NAME"))
  
      if name == "azure":
          return AzurePersistor(
              os.environ.get("AZURE_CONTAINER"),
              os.environ.get("AZURE_ACCOUNT_NAME"),
              os.environ.get("AZURE_ACCOUNT_KEY"),
          )
      if name:
          try:
              persistor = (
                  rasa.shared.utils.common.class_from_module_path(name)
              )
              return persistor()
          except ImportError:
              raise ImportError(
                  f"Unknown model persistor {name}. Please make sure to "
                  "either use an included model persistor (`aws`, `gcs` "
                  "or `azure`) or specify the module path to an external "
                  "model persistor."
              )
      return None
  
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 1 for calling a global function with example usage: get_persistor(name) and returns: None, AWSPersistor, GCSPersistor, AzurePersistor, persistor