code: def create(config):
      
      if exists(config):
          logger.debug("Wily cache exists, skipping")
          return config.cache_path
      logger.debug(f"Creating wily cache {config.cache_path}")
      pathlib.Path(config.cache_path).mkdir(parents=True, exist_ok=True)
      create_index(config)
      return config.cache_path
docs: Create a wily cache.
  
      :param config: The configuration
      :type  config: :class:`wily.config.WilyConfig`
  
      :return: The path to the cache
      :rtype: ``str``