code: def chart():
      return (
          Chart("cars.json")
          .mark_point()
          .encode(
              x="Horsepower:Q",
              y="Miles_per_Gallon:Q",
          )
      )
  
file_path: altair/tests/utils/test_compiler.py
imports: import json
  import pytest
  from altair import vegalite_compilers, Chart
label_desc: Use image node_id 1 for calling a global function with example usage: chart() and returns: Chart