code: def test_init_no_labels():
      """Test the TextData object when no labels are provided"""
  
      # Arrange
      text = [
          "I think therefore I am",
          "I am therefore I think",
          "I am",
      ]
      label = [None, None, None]
  
      # Act & Assert
      text_data = TextData(
          raw_text=text, label=label, task_type="text_classification"
      )
      assert_that(text_data.has_label(), equal_to(False))
      assert_that(
          text_data.is_multi_label_classification(), equal_to(False)
      )
  
      # np.nan label
      label = [np.nan, pd.NA, np.nan]
  
      # Act & Assert
      text_data = TextData(
          raw_text=text, label=label, task_type="text_classification"
      )
      assert_that(text_data.has_label(), equal_to(False))
      assert_that(
          text_data.is_multi_label_classification(), equal_to(False)
      )
  
imports: import numpy
  import pandas
  from hamcrest import assert_that, calling, contains_exactly, equal_to, raises
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.nlp.text_data import TextData
label_desc: Use image node_id 4 for calling a global function with example usage: test_init_no_labels() without return types