class_docstr: Interface for extracting image formats and sizes.
docstr: Returns the image format name for each value if it represents an image.
  
  Args:
    values: a list of values in bytes to check the image format.
  
  Returns:
    A list of string image formats (e.g: 'jpeg', 'bmp', ...) or None
    if the value is not a supported image, in the same order as the input
    value_list.
code: def get_formats(self, values: np.ndarray) -> np.ndarray:
      """Returns the image format name for each value if it represents an image.
  
      Args:
        values: a list of values in bytes to check the image format.
  
      Returns:
        A list of string image formats (e.g: 'jpeg', 'bmp', ...) or None
        if the value is not a supported 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 1 for calling the ImageDecoderInterface obj's underlying member method code with example usage: obj.get_formats(values) without return types