code: def get_plot(
      plots_data, revision, typ="sources", file=None, endkey="data"
  ):
      if file is not None:
          return dpath.get(
              plots_data, [revision, typ, "data", file, endkey]
          )
      return dpath.get(plots_data, [revision, typ, endkey])
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_plot(plots_data, revision, typ, file, endkey) and returns: dpath, dpath