code: def _build_all_formats_regexes(
      strptime_formats: Iterable[Text],
  ) -> Iterable[Tuple[Text, Pattern[Text]]]:
      """Yields compiled regexes corresponding to the input formats.
  
      Args:
        strptime_formats: Strptime format strings to convert to regexes.
  
      Yields:
        (strptime_format, compiled regex) tuples.
      """
      for strptime_format in strptime_formats:
          compiled_regex = re.compile(
              r"^{}$".format(
                  _convert_strptime_to_regex(strptime_format)
              )
          )
          yield (strptime_format, compiled_regex)
  
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 3 for calling a global function with example usage: _build_all_formats_regexes(strptime_formats) without return types