code: def check_output(self, want, got, optionflags):
      ret = doctest.OutputChecker.check_output(
          self, want, got, optionflags
      )
      if not ret:
          if "#random" in want:
              return True
  
          # it would be useful to normalize endianness so that
          # bigendian machines don't fail all the tests (and there are
          # actually some bigendian examples in the doctests). Let's try
          # making them all little endian
          got = got.replace("'>", "'<")
          want = want.replace("'>", "'<")
  
          # try to normalize out 32 and 64 bit default int sizes
          for sz in [4, 8]:
              got = got.replace("'<i%d'" % sz, "int")
              want = want.replace("'<i%d'" % sz, "int")
  
          ret = doctest.OutputChecker.check_output(
              self, want, got, optionflags
          )
  
      return ret
  
imports: from __future__ import division, absolute_import, print_function
  import os
  import sys
  import doctest
  import inspect
  import numpy
  import nose
  from nose.plugins import doctests
  from nose.plugins.errorclass import ErrorClass, ErrorClassPlugin
  from nose.plugins.base import Plugin
  from nose.util import src
  from .nosetester import get_package_name
  from .utils import KnownFailureException, KnownFailureTest
label_desc: Use image node_id 1 for calling the NumpyOutputChecker obj's underlying member method code with example usage: obj.check_output(want, got, optionflags) and returns: ret, True