code: def test_sequence_str(self):
      result = RESOURCE.get_emotional_valence(["love#n", "hate#n"])
      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 2 for calling the TestGetEmotionalVariance obj's underlying member method code with example usage: obj.test_sequence_str() without return types