code: def test_scale_labels_dict_with_specified_breaks():
      spec = gg.scale_x_discrete(
          labels=dict(a="A", b="B", c="C"), breaks=["a", "d", "c"]
      )
      as_dict = spec.as_dict()
      # use the order as in original 'breaks' + correct 'breaks' (without label - to the end of the list)
      assert as_dict["breaks"] == ["a", "c", "d"]
      assert as_dict["labels"] == ["A", "C"]
  
imports: import pytest
  import lets_plot
  from lets_plot.plot.core import FeatureSpec
  from lets_plot.plot.core import FeatureSpecArray
  from lets_plot.plot.scale import _scale
label_desc: Use image node_id 9 for calling a global function with example usage: test_scale_labels_dict_with_specified_breaks() without return types