code: def is_potential_nosetest(item):
      # extra check needed since we do not do nose style setup/teardown
      # on direct unittest style classes
      return isinstance(item, python.Function) and not isinstance(
          item, unittest.TestCaseFunction
      )
  
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 5 for calling a global function with example usage: is_potential_nosetest(item) and returns: unknown