code: def test_set_get_remove_extensions(doc_en, name):
      textacy.set_doc_extensions(name)
      assert all(
          doc_en.has_extension(n)
          for n in textacy.get_doc_extensions(name).keys()
      )
      if "." in name:
          assert not all(
              doc_en.has_extension(n)
              for n in textacy.get_doc_extensions("extract").keys()
          )
      textacy.remove_doc_extensions(name)
      assert not any(
          doc_en.has_extension(n)
          for n in textacy.get_doc_extensions(name).keys()
      )
  
imports: import pytest
  import textacy
  from textacy import text_stats
label_desc: Use image node_id 1 for calling a global function with example usage: test_set_get_remove_extensions(doc_en, name) without return types