code: def check_config_exists(dataset: str, config: str) -> None:
      """
      Check if dataset has a provided config. Dataset's configs are taken from 'dataset-config-names' step's cache.
      """
      config_names_best_response = get_previous_step_or_raise(
          kinds=["dataset-config-names"], dataset=dataset
      )
      try:
          configs_content = config_names_best_response.response[
              "content"
          ]["config_names"]
      except Exception as e:
          raise PreviousStepFormatError(
              "Previous steps 'dataset-config-names' did not return the expected content.",
              e,
          ) from e
  
      if config not in [
          config_item["config"] for config_item in configs_content
      ]:
          raise ConfigNotFoundError(
              f"Config '{config}' does not exist for dataset '{dataset}'"
          )
  
imports: import functools
  import itertools
  import logging
  import sys
  import time
  import traceback
  import warnings
  from collections.abc import Callable, Sequence
  from fnmatch import fnmatch
  from typing import Any, Optional, TypeVar, Union, cast
  from urllib.parse import quote
  import PIL
  import requests
  from datasets import Dataset, DatasetInfo, DownloadConfig, IterableDataset, load_dataset
  from datasets.utils.file_utils import get_authentication_headers_for_url
  from fsspec.implementations.http import HTTPFileSystem
  from huggingface_hub.hf_api import HfApi
  from huggingface_hub.utils._errors import RepositoryNotFoundError
  from libcommon.constants import EXTERNAL_DATASET_SCRIPT_PATTERN
  from libcommon.exceptions import ConfigNotFoundError, DatasetNotFoundError, DatasetWithScriptNotSupportedError, NormalRowsError, PreviousStepFormatError, SplitNotFoundError, StreamingRowsError
  from libcommon.simple_cache import get_previous_step_or_raise
  from libcommon.utils import Row, RowItem, orjson_dumps
  from pyarrow.parquet import ParquetFile
  from worker.dtos import RowsContent
label_desc: Use image node_id 13 for calling a global function with example usage: check_config_exists(dataset, config) without return types