class_docstr: ImageDecoderInterface implementation based on tensorflow library.
  
  This image decoder only supports image formats supported by:
  tf.image.decode_image, ['bmp', 'gif', 'jpeg', 'png'].
  
  Image sizes are computed using tf.image.decode_image, which requires tf.
  Initializating and pickling tf objects can be non-trivial, so:
  - Initialization is done lazily when get_sizes computation is needed.
  - __reduce__() is overridden so that tf state is ignored. It is lazily
    initialized as needed, after deserialization.
docstr: Returns the image size for each value if it represents an image.
  
  Args:
    values: a list of value in bytes to check the image size.
  
  Returns:
    A numpy array containing (image_height, image_width) tuples (if the value
      represents an image) in the same order as the input value list.
  
  Raises:
    ValueError: If any of the input value does not represents an image.
code: def get_sizes(self, values: np.ndarray) -> np.ndarray:
      """Returns the image size for each value if it represents an image.
  
      Args:
        values: a list of value in bytes to check the image size.
  
      Returns:
        A numpy array containing (image_height, image_width) tuples (if the value
          represents an image) in the same order as the input value list.
  
      Raises:
        ValueError: If any of the input value does not represents an image.
      """
      if not self._lazy_get_sizes_callable:
          self._initialize_lazy_get_sizes_callable()
      assert self._lazy_get_sizes_callable is not None
      return self._lazy_get_sizes_callable(values)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import abc
  import collections
  from typing import Iterable, List, Optional, Text
  import numpy
  import pandas
  import pyarrow
  import six
  import tensorflow
  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 tensorflow_metadata.proto.v0 import statistics_pb2
label_desc: Use image node_id 5 for calling the TfImageDecoder obj's underlying member method code with example usage: obj.get_sizes(values) and returns: self