code: def _get_state(config):
      if hasattr(config, "_assertstate"):
          return config._assertstate
      return config._store[rewrite.assertstate_key]
  
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 1 for calling a global function with example usage: _get_state(config) and returns: config, config