code: def _set_ya_config(config=None, ya=None):
      global _config
      if config:
          _config = config
      elif ya:
  
          class Config:
              def __init__(self):
                  self.ya = None
  
          _config = Config()
          _config.ya = ya
  
imports: import errno
  import functools
  import json
  import os
  import sys
  import threading
  import six
label_desc: Use image node_id 1 for calling a global function with example usage: _set_ya_config(config, ya) without return types