code: def test_returns(self):
      result = textacy.spacier.extensions.get_doc_extensions("spacier")
      assert isinstance(result, dict)
      assert all(isinstance(key, str) for key in result.keys())
      assert all(isinstance(val, dict) for val in result.values())
      assert all(
          isinstance(key, str) and callable(val)
          for value in result.values()
          for key, val in value.items()
      )
  
file_path: textacy/tests/spacier/test_extensions.py
imports: from contextlib import nullcontext
  import catalogue
  import pytest
  from spacy.tokens import Doc
  import textacy
label_desc: Use image node_id 2 for calling the TestGetDocExtensions obj's underlying member method code with example usage: obj.test_returns() without return types