code: def _should_rewrite(self, name, fn, state):
      if name.startswith("__tests__.") or name.endswith(".conftest"):
          return True
  
      return self._is_marked_for_rewrite(name, state)
  
file_path: catboost/library/python/pytest/rewrite.py
imports: from __future__ import absolute_import
  from __future__ import print_function
  import ast
  import py
  from _pytest.assertion import rewrite
  from __res import importer
  import sys
  import six
label_desc: Use image node_id 5 for calling the AssertionRewritingHook obj's underlying member method code with example usage: obj._should_rewrite(name, fn, state) and returns: self, True