class_docstr: Fake ImageDecoderInterface implementation for testing.
class_docstr_tok: ["Fake","ImageDecoderInterface","implementation","for","testing","."]
code: def encode_image_metadata(image_format, image_height, image_width):
      image_metadata = {
          "format": image_format,
          "height": image_height,
          "width": image_width,
      }
      return json.dumps(image_metadata)
  
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 1 for calling the FakeImageDecoder obj's underlying member method code with example usage: obj.encode_image_metadata(image_format, image_height, image_width) and returns: json