code: def test_remove_brackets(text_in, only, text_out):
      assert (
          preprocessing.remove.brackets(text_in, only=only) == text_out
      )
  
imports: import pytest
  from textacy import preprocessing
label_desc: Use image node_id 2 for calling a global function with example usage: test_remove_brackets(text_in, only, text_out) without return types