code: def check_dataset(config, readme_examples):
      # No Examples
      if not any(readme_examples.values()):
          assert not any(
              c for c in config["components"] if c["type"] == "dataset"
          )
      else:
          dataset = next(
              c for c in config["components"] if c["type"] == "dataset"
          )
          assert dataset["props"]["samples"] == [
              [cols_to_rows(readme_examples)[1]]
          ]
  
imports: import os
  import tempfile
  import textwrap
  import warnings
  from pathlib import Path
  from unittest.mock import MagicMock, patch
  import pytest
  from fastapi.testclient import TestClient
  from gradio_client import media_data
  from huggingface_hub import HfFolder
  import gradio
  from gradio.context import Context
  from gradio.exceptions import GradioVersionIncompatibleError, InvalidApiNameError
  from gradio.external import TooManyRequestsError, cols_to_rows, get_tabular_examples
label_desc: Use image node_id 4 for calling a global function with example usage: check_dataset(config, readme_examples) without return types