      with pytest.raises(ValueError):
          nlp.select_pipes(enable=[], disable=["c3"])
  
  
  @pytest.mark.parametrize("n_pipes", [100])
  def test_add_lots_of_pipes(nlp, n_pipes):
      Language.component("n_pipes", func=lambda doc: doc)
      for i in range(n_pipes):
 
</s> remove         # TODO: maybe add some more checks / catch errors that may occur if
        # user removes a disabled pipe in the with block
 </s> add  </s> remove     E008 = ("Some current components would be lost when restoring previous "
            "pipeline state. If you added components after calling "
            "`nlp.select_pipes()`, you should remove them explicitly with "
            "`nlp.remove_pipe()` before the pipeline is restored. Names of "
            "the new components: {names}")
 </s> add     E008 = ("Can't restore disabled pipeline component '{name}' because it "
            "doesn't exist in the pipeline anymore. If you want to remove "
            "components from the pipeline, you should do it before calling "
            "`nlp.select_pipes()` or after restoring the disabled components.")
    disabled = nlp.select_pipes(disable=["c2"])
    nlp.remove_pipe("c2")
    with pytest.raises(ValueError):
        disabled.restore()

      with pytest.raises(ValueError):
          nlp.select_pipes(enable=[], disable=["c3"])
  
    disabled = nlp.select_pipes(disable=["c2"])
    nlp.remove_pipe("c2")
    with pytest.raises(ValueError):
        disabled.restore()

  
  @pytest.mark.parametrize("n_pipes", [100])
  def test_add_lots_of_pipes(nlp, n_pipes):
      Language.component("n_pipes", func=lambda doc: doc)
      for i in range(n_pipes):
keep keep add keep keep keep keep keep
 Raise if disabled components are removed before DisabledPipes.restore 
spacy/tests/pipeline/test_pipe_methods.py