class_docstr: Base class for evaluators.
class_docstr_tok: ["Base","class","for","evaluators","."]
docstr: Computes and logs samples.
docstr_tok: ["Computes","and","logs","samples","."]
code: def sample(self, batch, outputs, step):
      """Computes and logs samples."""
      raise NotImplementedError()
  
imports: import ddsp
  from ddsp.training import heuristics
  from ddsp.training import metrics
  from ddsp.training import summaries
  import gin
  import numpy
  import tensorflow.compat.v2
label_desc: Use image node_id 4 for calling the BaseEvaluator obj's underlying member method code with example usage: obj.sample(batch, outputs, step) without return types