code: def _get_store_by_name(self, name):
          
          for cls in self.storage_type_map.values():
              filename = os.path.join(self.storage_path,
                                      '{name}.{ending}'.format(
                                          name=name,
                                          ending=cls.file_ending))
              if os.path.exists(filename):
                  try:
                      return cls(self.storage_path)
                  except:
                      continue
          raise ClusterNotFound(
              "No state file for cluster `{name}` was found in directory `{path}`"
              .format(name=name, path=self.storage_path))
docs: Return an instance of the correct DiskRepository based on the *first* file that matches the standard syntax for repository files