code: def __init__(
      self,
      test,
      optionflags=0,
      setUp=None,
      tearDown=None,
      checker=None,
      obj=None,
      result_var="_",
  ):
      self._result_var = result_var
      self._nose_obj = obj
      doctest.DocTestCase.__init__(
          self,
          test,
          optionflags=optionflags,
          setUp=setUp,
          tearDown=tearDown,
          checker=checker,
      )
  
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 to create a new NumpyDocTestCase object from inherited base classes: npd with example: obj = NumpyDocTestCase(test, optionflags, setUp, tearDown, checker, obj, result_var)