class_docstr: Interface for extracting image formats and sizes.
docstr: Returns the image size for each value if it represents an image.
  
  Args:
    values: a list of values in bytes to check the image size.
  
  Returns:
    A list of (image_height, image_width) tuple (if the value represents an
    image) in the same order as the input value list.
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 values in bytes to check the image size.
  
      Returns:
        A list of (image_height, image_width) tuple (if the value represents an
        image) in the same order as the input value list.
      """
      raise NotImplementedError
  
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 2 for calling the ImageDecoderInterface obj's underlying member method code with example usage: obj.get_sizes(values) without return types