code: def test_text_feature_without_label(self):
      feature = TextFeature(text)
      assert feature.get_text() == text
      assert feature.get_label() == -1
      assert not feature.has_label()
      assert feature.keys() == ["text"]
      feature.set_label(0.0)
      assert feature.get_label() == 0
      assert feature.has_label()
      assert set(feature.keys()) == {"text", "label"}
      assert feature.get_tokens() is None
      assert feature.get_sample() is None
  
file_path: analytics-zoo/pyzoo/test/zoo/feature/text/test_text_feature.py
imports: import pytest
  from zoo.feature.text import *
  from test.zoo.pipeline.utils.test_utils import ZooTestCase
label_desc: Use image node_id 2 for calling the TestTextFeature obj's underlying member method code with example usage: obj.test_text_feature_without_label() without return types