code: def get_json(url, desc):
      r = requests.get(url)
      if r.status_code != 200:
          raise OSError(
              "%s: Received status code %s when fetching the resource"
              % (desc, r.status_code)
          )
      return r.json()
  
file_path: snips-nlu/snips_nlu/cli/utils.py
imports: from __future__ import print_function, unicode_literals
  import logging
  import os
  import subprocess
  import sys
  from enum import Enum, unique
  import requests
  import snips_nlu
  from snips_nlu import __about__
  from snips_nlu.common.utils import parse_version
label_desc: Use image node_id 3 for calling a global function with example usage: get_json(url, desc) and returns: r