code: def spec():
      return {
          "data": {"url": "data.json"},
          "mark": {"type": "point"},
          "encoding": {
              "x": {"field": "x", "type": "quantitative"},
              "y": {"field": "y", "type": "quantitative"},
          },
      }
  
imports: import pytest
  from altair.utils.html import spec_to_html
label_desc: Use image node_id 1 for calling a global function with example usage: spec() and returns: dict