code: def _verify_read_config_for_ordered_dataset(
      read_config: read_config_lib.ReadConfig,
      interleave_cycle_length: int,
      shuffle_files: bool,
  ) -> None:
      """Check that read parameters will not affect the ordering of the dataset.
  
      The user can bypass the error by setting `enable_ordering_guard=False`.
  
      Args:
        read_config: The input pipeline options.
        interleave_cycle_length: Cycle length for `tf.data.Dataset.interleave`.
        shuffle_files: If True, input files are shuffled before being read.
      """
      error_messages = []
      if shuffle_files:
          error_messages.append(
              "Dataset is an ordered dataset ('disable_shuffling=True'), but examples"
              " will not be read in order because `shuffle_files=True`."
          )
      if interleave_cycle_length != 1:
          error_messages.append(
              "Dataset is an ordered dataset ('disable_shuffling=True'), but examples"
              " will not be read in order because `ReadConfig.interleave_cycle_length"
              " != 1`."
          )
      if error_messages:
          error_message = "\n".join(error_messages)
          if read_config.enable_ordering_guard:
              raise ValueError(error_message)
          else:
              logging.warning(error_message)
  
imports: from __future__ import annotations
  import functools
  import os
  import re
  from typing import Any, Callable, List, NamedTuple, Optional, Sequence
  from absl import logging
  import numpy
  from tensorflow_datasets.core import example_parser
  from tensorflow_datasets.core import file_adapters
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.core import tf_compat
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.utils import file_utils
  from tensorflow_datasets.core.utils import read_config
  from tensorflow_datasets.core.utils import shard_utils
  from tensorflow_datasets.core.utils import tree_utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 8 for calling a global function with example usage: _verify_read_config_for_ordered_dataset(read_config, interleave_cycle_length, shuffle_files) without return types