class_docstr: Base class for coding experiment.
class_docstr_tok: ["Base","class","for","coding","experiment","."]
code: def test_step(self, x):
      rates, distortions = self.test_losses(x)
      losses = rates + self.lmbda * distortions
      self.loss.update_state(losses)
      self.rate.update_state(rates)
      self.distortion.update_state(distortions)
      return {
          m.name: m.result()
          for m in [self.loss, self.rate, self.distortion]
      }
  
file_path: compression/models/toy_sources/compression_model.py
imports: import abc
  import matplotlib.pyplot
  import numpy
  import tensorflow
label_desc: Use image node_id 8 for calling the CompressionModel obj's underlying member method code with example usage: obj.test_step(x) and returns: unknown