code: def _get_ya_config():
      if _config:
          return _config
      else:
          try:
              import pytest
  
              return pytest.config
          except (ImportError, AttributeError):
              raise NoRuntimeFormed(
                  "yatest.common.* is only available from the testing runtime"
              )
  
imports: import errno
  import functools
  import json
  import os
  import sys
  import threading
  import six
label_desc: Use image node_id 2 for calling a global function with example usage: _get_ya_config() and returns: _config, pytest