class_docstr: Nose Plugin that supports doctests in extension modules.
      
code: def loadTestsFromFile(self, filename):
      # print "ipdoctest - from file", filename # dbg
      if is_extension_module(filename):
          for t in self.loadTestsFromExtensionModule(filename):
              yield t
      else:
          if self.extension and anyp(filename.endswith, self.extension):
              name = os.path.basename(filename)
              dh = open(filename)
              try:
                  doc = dh.read()
              finally:
                  dh.close()
              test = self.parser.get_doctest(
                  doc,
                  globs={"__file__": filename},
                  name=name,
                  filename=filename,
                  lineno=0,
              )
              if test.examples:
                  # print 'FileCase:',test.examples  # dbg
                  yield DocFileCase(test)
              else:
                  yield False
  
imports: import doctest
  import inspect
  import logging
  import os
  import re
  import sys
  from testpath import modified_env
  from inspect import getmodule
  from doctest import REPORTING_FLAGS, REPORT_ONLY_FIRST_FAILURE, _unittest_reportflags, DocTestRunner, _extract_future_flags, pdb, _OutputRedirectingPdb, _exception_traceback, linecache
  from nose.plugins import doctests, Plugin
  from nose.util import anyp, tolist
  from IPython.utils.py3compat import builtin_mod, PY3, getcwd
label_desc: Use image node_id 5 for calling the ExtensionDoctest obj's underlying member method code with example usage: obj.loadTestsFromFile(filename) without return types