code: def plots_data():
      return {
          "revision": {
              "sources": {
                  "data": {
                      "plot.csv": {
                          "data": [{"val": 1}, {"val": 2}],
                          "props": {},
                      },
                      "other.jpg": {"data": b"content"},
                  }
              },
              "definitions": {
                  "data": {"dvc.yaml": {"data": {"plot.csv": {}}}}
              },
          }
      }
  
imports: import json
  import os
  import posixpath
  from pathlib import Path
  import pytest
  from funcy import set_in
  from dvc.cli import parse_args
  from dvc.commands.plots import CmdPlotsDiff, CmdPlotsShow, CmdPlotsTemplates
  from dvc.render.match import RendererWithErrors
  from dvc.utils.serialize import YAMLFileCorruptedError
label_desc: Use image node_id 1 for calling a global function with example usage: plots_data() and returns: dict