docstr: Find tests for the given object and any contained objects, and
  add them to `tests`.
docstr_tok: ["Find","tests","for","the","given","object","and","any","contained","objects",",","and","add","them","to","`","tests","`","."]
code: def _find(self, tests, obj, name, module, source_lines, globs, seen):
      """
      Find tests for the given object and any contained objects, and
      add them to `tests`.
      """
  
      doctest.DocTestFinder._find(
          self, tests, obj, name, module, source_lines, globs, seen
      )
  
      # Below we re-run pieces of the above method with manual modifications,
      # because the original code is buggy and fails to correctly identify
      # doctests in extension modules.
  
      # Local shorthands
      from inspect import (
          isroutine,
          isclass,
          ismodule,
          isfunction,
          ismethod,
      )
  
      # Look for tests in a module's contained objects.
      if ismodule(obj) and self._recurse:
          for valname, val in obj.__dict__.items():
              valname1 = "%s.%s" % (name, valname)
              if (isroutine(val) or isclass(val)) and self._from_module(
                  module, val
              ):
                  self._find(
                      tests,
                      val,
                      valname1,
                      module,
                      source_lines,
                      globs,
                      seen,
                  )
  
      # Look for tests in a class's contained objects.
      if isclass(obj) and self._recurse:
          for valname, val in obj.__dict__.items():
              # Special handling for staticmethod/classmethod.
              if isinstance(val, staticmethod):
                  val = getattr(obj, valname)
              if isinstance(val, classmethod):
                  val = getattr(obj, valname).__func__
  
              # Recurse to methods, properties, and nested classes.
              if (
                  isfunction(val)
                  or isclass(val)
                  or ismethod(val)
                  or isinstance(val, property)
              ) and self._from_module(module, val):
                  valname = "%s.%s" % (name, valname)
                  self._find(
                      tests,
                      val,
                      valname,
                      module,
                      source_lines,
                      globs,
                      seen,
                  )
  
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 2 for calling the NumpyDocTestFinder obj's underlying member method code with example usage: obj._find(tests, obj, name, module, source_lines, globs, seen) without return types