def METHOD_NAME(
    self, plugin_type: AgentPluginType, plugin_name: PluginName, plugin_version: PluginVersion
):
    plugin_metadata = self._find_plugin_in_repository(plugin_type, plugin_name, plugin_version)
    plugin_download_url = self._get_file_download_url(plugin_metadata=plugin_metadata)
    response = requests.get(plugin_download_url)
    plugin_archive = response.content
    if not self._validate_plugin_hash(plugin_metadata, plugin_archive):
        raise PluginInstallationError(
            f'Error occured installing plugin with type "{plugin_type}", name "{plugin_name}",'
            f' and version "{plugin_version}" from plugin repository: Invalid hashes.'
        )
    self.install_plugin_archive(plugin_archive)