code: def global_resources():
      try:
          if "YA_GLOBAL_RESOURCES" in os.environ:
              return json.loads(os.environ.get("YA_GLOBAL_RESOURCES"))
          else:
              return _get_ya_plugin_instance().get_context(
                  "ya_global_resources"
              )
      except (TypeError, ValueError):
          return {}
  
imports: import errno
  import functools
  import json
  import os
  import sys
  import threading
  import six
label_desc: Use image node_id 38 for calling a global function with example usage: global_resources() and returns: json, _get_ya_plugin_instance, dict