code: def teardown_nose(item):
      if is_potential_nosetest(item):
          if not call_optional(item.obj, "teardown"):
              call_optional(item.parent.obj, "teardown")
  
file_path: catboost/contrib/python/pytest/py2/_pytest/nose.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import sys
  import six
  import pytest
  from _pytest import python
  from _pytest import runner
  from _pytest import unittest
  from _pytest.config import hookimpl
label_desc: Use image node_id 4 for calling a global function with example usage: teardown_nose(item) without return types