code: def test_textcatcnn():
      orig_config = Config().from_str(cfg_string)
      nlp = util.load_model_from_config(
          orig_config, auto_fill=True, validate=True
      )
      assert nlp.pipe_names == ["textcat"]
  
      textcat = nlp.get_pipe("textcat")
      assert textcat.is_resizable is True
  
      train_examples = []
      doc = nlp.make_doc("ok")
      doc.cats["X"] = 1.0
      doc.cats["Y"] = 0.0
      train_examples.append(Example(doc, doc))
  
      nlp.initialize(lambda: train_examples)
  
imports: import pytest
  from packaging.version import Version
  from spacy.training.example import Example
  from spacy import util
  import thinc
  from thinc.api import Model, Config
label_desc: Use image node_id 1 for calling a global function with example usage: test_textcatcnn() without return types