code: def test_inherit_docstring_from():
      with suppress_warnings() as sup:
          sup.filter(category=DeprecationWarning)
  
          class Foo:
              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/py3/scipy/misc/tests/test_doccer.py
imports: import sys
  import pytest
  from numpy.testing import assert_equal, suppress_warnings
  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