code: def _build_all_formats() -> Iterable[Text]:
      """Yields all valid date, time, and combination formats.
  
      The valid formats are defined by _COMBINED_FORMATS, _DATE_ONLY_FORMATS,
      _TIME_ONLY_FORMATS,
      _TIME_DELIMITERS. This function yields each date only and time only format.
      For combination formats, each date format from _DATE_ONLY_FORMATS is combined
      with each time format from _TIME_ONLY_FORMATS in two ways: one with the time
      delimiter and one with a space. Additionally, some combined formats are
      specified directly by _COMBINED_FORMATS and yielded.
  
      Yields:
        All valid date, time, and combination date and time formats.
      """
      for date_fmt in _DATE_ONLY_FORMATS:
          yield date_fmt
      for time_fmt in _TIME_ONLY_FORMATS:
          yield time_fmt
      for combined_fmt in _COMBINED_FORMATS:
          yield combined_fmt
      for date_fmt in _DATE_ONLY_FORMATS:
          for time_fmt in _TIME_ONLY_FORMATS:
              for time_delimiter in _TIME_DELIMITERS:
                  yield "".join([date_fmt, time_delimiter, time_fmt])
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import calendar
  import collections
  import re
  import numpy
  import pyarrow
  from tensorflow_data_validation import types
  from tensorflow_data_validation.statistics.generators import stats_generator
  from tensorflow_data_validation.utils import stats_util
  from tfx_bsl.arrow import array_util
  from typing import Iterable, Pattern, Text, Tuple
  from tensorflow_metadata.proto.v0 import schema_pb2
  from tensorflow_metadata.proto.v0 import statistics_pb2
label_desc: Use image node_id 2 for calling a global function with example usage: _build_all_formats() without return types