code: def test_remove(self, corpus):
      match_funcs = (
          lambda doc: doc._.meta.get("foo") == "bar",
          lambda doc: len(doc) < 10,
      )
      n_docs = corpus.n_docs
      for match_func in match_funcs[:1]:
          corpus.remove(match_func)
          assert corpus.n_docs < n_docs
          assert not any([match_func(doc) for doc in corpus])
          n_docs = corpus.n_docs
  
imports: import collections
  import itertools
  import numpy
  import pytest
  from spacy.tokens import Doc
  from textacy import Corpus
  from textacy import load_spacy_lang
label_desc: Use image node_id 6 for calling the TestCorpusMethods obj's underlying member method code with example usage: obj.test_remove(corpus) without return types