code: def test_resolve(chart_type):
      chart = _make_chart_type(chart_type)
      chart = (
          chart.resolve_scale(
              x="independent",
          )
          .resolve_legend(color="independent")
          .resolve_axis(y="independent")
      )
      dct = chart.to_dict()
      assert dct["resolve"] == {
          "scale": {"x": "independent"},
          "legend": {"color": "independent"},
          "axis": {"y": "independent"},
      }
  
imports: import io
  import json
  import operator
  import os
  import pathlib
  import tempfile
  import jsonschema
  import pytest
  import pandas
  import altair.vegalite.v5
label_desc: Use image node_id 38 for calling a global function with example usage: test_resolve(chart_type) without return types