code: def test_inherit_docstring_from():
      class Foo(object):
          def func(self):
              """Do something useful."""
              return
  
          def func2(self):
              """Something else."""
  
      class Bar(Foo):
          @doccer.inherit_docstring_from(Foo)
          def func(self):
              """%(super)sABC"""
              return
  
          @doccer.inherit_docstring_from(Foo)
          def func2(self):
              # No docstring.
              return
  
      assert_equal(Bar.func.__doc__, Foo.func.__doc__ + "ABC")
      assert_equal(Bar.func2.__doc__, Foo.func2.__doc__)
      bar = Bar()
      assert_equal(bar.func.__doc__, Foo.func.__doc__ + "ABC")
      assert_equal(bar.func2.__doc__, Foo.func2.__doc__)
  
file_path: catboost/contrib/python/scipy/py2/scipy/misc/tests/test_doccer.py
imports: from __future__ import division, print_function, absolute_import
  import sys
  import pytest
  from numpy.testing import assert_equal
  from scipy.misc import doccer
label_desc: Use image node_id 5 for calling a global function with example usage: test_inherit_docstring_from() without return types