code: def test_selection_condition():
      sel = alt.selection_point(empty=False)
  
      c = (
          alt.Chart()
          .mark_point()
          .encode(
              size=alt.condition(sel, alt.value(100), alt.value(10))
          )
          .add_params(sel)
      )
  
      dct = c.to_dict()
  
      param_name = sel.param.name
  
      cond = dct["encoding"]["size"]["condition"]
  
      assert cond["value"] == 100
      assert cond["param"] == param_name
  
      # The else condition
      assert dct["encoding"]["size"]["value"] == 10
  
file_path: altair/tests/vegalite/v5/test_params.py
imports: import pandas
  import warnings
  import pytest
  import re
  import altair.vegalite.v5
label_desc: Use image node_id 6 for calling a global function with example usage: test_selection_condition() without return types