docstr: Ensure that decoder and generator implementations are pickle-able.
docstr_tok: ["Ensure","that","decoder","and","generator","implementations","are","pickle-able","."]
code: def test_image_stats_generator_pickle_success(self):
      """Ensure that decoder and generator implementations are pickle-able."""
      image_decoder = image_stats_generator.TfImageDecoder()
      pickle.dumps(image_decoder)
      generator = image_stats_generator.ImageStatsGenerator(
          image_decoder=image_decoder,
          is_image_ratio_threshold=0.6,
          values_threshold=1,
      )
      pickle.dumps(generator)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import json
  import os
  import pickle
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  import pyarrow
  import tensorflow
  from tensorflow_data_validation.statistics.generators import image_stats_generator
  from tensorflow_data_validation.utils import test_util
  from google.protobuf import text_format
  from tensorflow_metadata.proto.v0 import statistics_pb2
label_desc: Use image node_id 2 for calling the ImageStatsGeneratorRealImageTest obj's underlying member method code with example usage: obj.test_image_stats_generator_pickle_success() without return types