code: def test_doc(self, spacy_doc):
      result = RESOURCE.get_emotional_valence(spacy_doc)
      assert isinstance(result, dict)
      assert all(isinstance(key, str) for key in result.keys())
      assert all(isinstance(val, float) for val in result.values())
      assert all(0 <= val <= 1.0 for val in result.values())
  
file_path: textacy/tests/resources/test_depeche_mood.py
imports: import pytest
  import textacy
  import textacy.resources
label_desc: Use image node_id 5 for calling the TestGetEmotionalVariance obj's underlying member method code with example usage: obj.test_doc(spacy_doc) without return types