code: def test_generated_samples(self):
      self.builder.download_and_prepare()
      for split_name in ["all", "default"]:
          data_source = self.builder.as_data_source(split=split_name)
          assert len(data_source) == 2
          for i in range(2):
              assert (
                  data_source[i]["index"] == DUMMY_ENTRIES[i]["index"]
              )
              assert (
                  data_source[i]["text"].decode()
                  == DUMMY_ENTRIES[i]["text"]
              )
  
file_path: datasets/tensorflow_datasets/core/dataset_builders/croissant_builder_test.py
imports: import json
  import tempfile
  from etils import epath
  import numpy
  import pytest
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import FileFormat
  from tensorflow_datasets.core.dataset_builders import croissant_builder
  from tensorflow_datasets.core.features import image_feature
  from tensorflow_datasets.core.features import text_feature
  from tensorflow_datasets.core.utils.lazy_imports_utils import mlcroissant
label_desc: Use image node_id 3 for calling the CroissantBuilderTest obj's underlying member method code with example usage: obj.test_generated_samples() without return types