class_docstr: Output checker which enhances `doctest.OutputChecker` to compare doctests
  and computed output with additional flags.
class_docstr_tok: ["Output","checker","which","enhances","`","doctest.OutputChecker","`","to","compare","doctests","and","computed","output","with","additional","flags","."]
docstr: Return 'True' if the actual output from an example matches the
  expected.
  
  Parameters
  ----------
  want : str
      Expected output.
  got : str
      Actual output.
  optionflags : int
      Comparison flags.
  
  Returns
  -------
  bool
      'True' if the output matches the expectation.
docstr_tok: ["Return","'True","'","if","the","actual","output","from","an","example","matches","the","expected",".","Parameters","--","--","--","--","--","want",":","str","Expected","output",".","got",":","str","Actual","output",".","optionflags",":","int","Comparison","flags",".","Returns","--","--","--","-","bool","'True","'","if","the","output","matches","the","expectation","."]
code: def check_output(self, want, got, optionflags):
      """
      Return 'True' if the actual output from an example matches the
      expected.
  
      Parameters
      ----------
      want : str
          Expected output.
      got : str
          Actual output.
      optionflags : int
          Comparison flags.
  
      Returns
      -------
      bool
          'True' if the output matches the expectation.
  
      """
      import re
  
      if optionflags & _NORMALIZE_ARRAYS:
          # in different versions of numpy arrays sometimes are displayed as
          # 'array([ 0. ,' or 'array([0.0,', thus correct both whitespace
          # after parenthesis and before commas as well as .0 decimals
          got = re.sub(r"\( ", "(", got)
          got = re.sub(r"\[ ", "[", got)
          got = re.sub(r"0\.0", "0.", got)
          got = re.sub(r"\s*,", ",", got)
          want = re.sub(r"\( ", "(", want)
          want = re.sub(r"\[ ", "[", want)
          want = re.sub(r"0\.0", "0.", want)
          want = re.sub(r"\s*,", ",", want)
      if optionflags & _NORMALIZE_FFT:
          # in different versions of numpy arrays, FFT results can be ±0.j
          # and the unwrapped phase ±pi
          got = re.sub(r"-0.j", "+0.j", got)
          want = re.sub(r"-0.j", "+0.j", want)
          got = re.sub(r"-3.14159", " 3.14159", got)
          want = re.sub(r"-3.14159", " 3.14159", want)
  
      super_check_output = _DoctestOutputChecker.check_output
      return super_check_output(self, want, got, optionflags)
  
imports: from __future__ import absolute_import, division, print_function
  import doctest
  import pkg_resources
  from .None import audio, evaluation, features, io, ml, models, processors, utils
label_desc: Use image node_id 1 for calling the _OutputChecker obj's underlying member method code with example usage: obj.check_output(want, got, optionflags) and returns: super_check_output