def METHOD_NAME(self, agent_plugin: AgentPlugin):
    """
    Extracts an `AgentPlugin`'s source code archive
    The `AgentPlugin`'s source code archive will be extracted to
    `self.plugin_destination_directory / agent_plugin.manifest.name`. While this method attempts
    to prevent directory traversal and other relevant vulnerabilities, it is still advisable
    that you do not use this to extract archives/plugins from untrusted sources.
    :param agent_plugin: An `AgentPlugin` to extract
    :raises ValueError: If the agent's source code archive is potentially malicious or otherwise
                        can not be extracted
    """
    destination = self._get_plugin_destination_directory(agent_plugin)
    create_secure_directory(destination)
    decompressed_archive = _decompress_archive(agent_plugin.source_archive)
    archive = TarFile(fileobj=io.BytesIO(decompressed_archive), mode="r")
    # We check the entire archive to detect any malicious activity **before** we extract any
    # files. This is a paranoid approach that prevents against partial extraction of malicious
    # archives; either the whole archive is judged to be safe and extracted, or nothing is
    # extracted.
    _detect_malicious_archive(destination, archive)
    _safe_extract(destination, archive)