code: def from_json(filename):
      """Initialize object from a json file.
  
      Will use the faster `ujson` (https://github.com/ultrajson/ultrajson) if it is available.
  
      Parameters
      ----------
      filename : str
          location of json file
  
      Returns
      -------
      InferenceData object
      """
      with open(filename, "rb") as file:
          idata_dict = json.load(file)
  
      return from_dict(**idata_dict, save_warmup=True)
  
label_desc: Use image node_id 1 for calling a global function with example usage: from_json(filename) and returns: from_dict