code: def test_init_data_properties(self, dataset):
      data = Data(data=dataset, label_name="label")
      assert data._data == dataset
  
      # All elements in the _labels attribute are integers in the range [0, num_classes - 1]
      num_classes = len(set(data.labels.label_map))
      all_labels_are_ints = np.issubdtype(
          data.labels.labels.dtype, np.integer
      )
      assert (
          all_labels_are_ints
      ), f"{data.labels.labels} should be a list of integers"
      assert all(
          0 <= label < num_classes for label in data.labels.labels
      )
  
      assert all(
          isinstance(label, int)
          for label in data.labels.label_map.keys()
      )
  
file_path: cleanlab/tests/datalab/test_data.py
imports: import tempfile
  from unittest.mock import patch
  import pytest
  from cleanlab.datalab.internal.data import Data, DataFormatError, DatasetLoadError
  from datasets import Dataset, ClassLabel
  import numpy
  import hypothesis.strategies
  from hypothesis import given, assume, settings, HealthCheck
label_desc: Use image node_id 2 for calling the TestData obj's underlying member method code with example usage: obj.test_init_data_properties(dataset) without return types