class_docstr: Test cases for RepresentativeDatasetSaver.
class_docstr_tok: ["Test","cases","for","RepresentativeDatasetSaver","."]
code: def test_save_raises_error(self):
      saver = repr_dataset.RepresentativeDatasetSaver()
      repr_ds = {"serving_default": []}
  
      with self.assertRaisesRegex(
          NotImplementedError, 'Method "save" is not implemented.'
      ):
          saver.save(repr_ds)
  
imports: import random
  import numpy
  from tensorflow.compiler.mlir.quantization.tensorflow.python import representative_dataset
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.python.client import session
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import test
  from tensorflow.python.types import core
label_desc: Use image node_id 1 for calling the RepresentativeDatasetSaverTest obj's underlying member method code with example usage: obj.test_save_raises_error() without return types