You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: remove.rs
    path of file: ./repos/anki/rslib/src/tags
    
    the code of the file until where you have to start completion: // Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html

use super::matcher::TagMatcher;
use crate::prelude::*;

impl Collection {
    /// Take tags as a whitespace-separated string and remove them from all
    /// notes and the tag list.
    pub fn remove_tags(&mut self, tags: &str) -> Result<OpOutput<usize>> {
        self.transact(Op::RemoveTag, |col| col.remove_tags_inner(tags))
    }

    /// Remove whitespace-separated tags
    
    fn clearing() -> Result<()> {
        let mut col = Collection::new();
        let nt = col.get_notetype_by_name("Basic")?.unwrap();
        let mut note = nt.new_note();
        note.tags.push("one".into());
        note.tags.push("two".into());
        col.add_note(&mut note, DeckId(1))?;

        col.set_tag_collapsed("one", false)?;
        col.clear_unused_tags()?;
        assert!(col.storage.get_tag("one")?.unwrap().expanded);
        assert!(!col.storage.get_tag("two")?.unwrap().expanded);

        // tag children are also cleared when clearing their parent
        col.storage.clear_all_tags()?;
        for name in &["a", "a::b", "A::b::c"] {
            col.register_tag(&mut Tag::new(name.to_string(), Usn(0)))?;
        }
        col.remove_tags("a")?;
        assert_eq!(col.storage.all_tags()?, vec![]);

        Ok(())
    }