code: def check_dataset_labels(
      dataset, tokenizer, num_examples=5, text_only=False
  ):
      # the dataset is already shuffled, so let's just check the first 5 elements
      for idx in range(num_examples):
          check_example_labels(
              dataset[idx], tokenizer, text_only=text_only
          )
  
imports: import logging
  from termcolor import colored
label_desc: Use image node_id 1 for calling a global function with example usage: check_dataset_labels(dataset, tokenizer, num_examples, text_only) without return types