class_docstr: Customizes how `want` and `got` are compared, see `check_output`.
class_docstr_tok: ["Customizes","how","`","want","`","and","`","got","`","are","compared",",","see","`","check_output","`","."]
code: def output_difference(self, example, got, optionflags):
      got = [got]
  
      # If the some of the float output is hidden with `...`, `float_size_good`
      # will be False. This is because the floats extracted from the string is
      # converted into a 1-D numpy array. Hence hidding floats is not allowed
      # anymore.
      if self.text_good:
          if not self.float_size_good:
              got.append(
                  "\n\nCAUTION: tf_doctest doesn't work if *some* of the "
                  '*float output* is hidden with a "...".'
              )
  
      got.append(self.MESSAGE)
      got = "\n".join(got)
      return super(TfDoctestOutputChecker, self).output_difference(
          example, got, optionflags
      )
  
file_path: tensorflow/tensorflow/tools/docs/tf_doctest_lib.py
imports: import doctest
  import re
  import textwrap
  import numpy
label_desc: Use image node_id 5 for calling the TfDoctestOutputChecker obj's underlying member method code with example usage: obj.output_difference(example, got, optionflags) and returns: super