class_docstr: API for writing serialized skew pairs to a TFRecord file.
class_docstr_tok: ["API","for","writing","serialized","skew","pairs","to","a","TFRecord","file","."]
code: def expand(self, skew_pairs: beam.PCollection) -> beam.pvalue.PDone:
      return skew_pairs | "WriteSkewPairs" >> beam.io.WriteToTFRecord(
          self._output_path,
          shard_name_template="",
          coder=beam.coders.ProtoCoder(
              feature_skew_results_pb2.SkewPair
          ),
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import itertools
  import logging
  from typing import Callable, Iterable, List, Optional, Text, Tuple, Set
  import apache_beam
  import pyarrow
  import tensorflow
  from tensorflow_data_validation import constants
  from tensorflow_data_validation import types
  from tensorflow_data_validation.anomalies.proto import custom_validation_config_pb2
  from tensorflow_data_validation.anomalies.proto import validation_config_pb2
  from tensorflow_data_validation.anomalies.proto import validation_metadata_pb2
  from tensorflow_data_validation.api import validation_options
  from tensorflow_data_validation.pywrap.tensorflow_data_validation_extension import validation
  from tensorflow_data_validation.skew import feature_skew_detector
  from tensorflow_data_validation.skew.protos import feature_skew_results_pb2
  from tensorflow_data_validation.statistics import stats_impl
  from tensorflow_data_validation.statistics import stats_options
  from tensorflow_data_validation.utils import anomalies_util
  from tensorflow_data_validation.utils import slicing_util
  from tensorflow_data_validation.utils import stats_util
  from tensorflow_metadata.proto.v0 import anomalies_pb2
  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 the WriteSkewPairsToTFRecord obj's underlying member method code with example usage: obj.expand(skew_pairs) and returns: unknown