code: def test_default_length():
      """Raise ValueError if `default` length != len(df)."""
      df = pd.DataFrame({"a": range(20)})
      with pytest.raises(
          ValueError,
          match=(
              "The length of the argument for the `default` parameter is.+"
          ),
      ):
          df.case_when(
              df.a < 10,
              "less_than_10",
              default=df.loc[:5, "a"],
              column_name="a",
          )
  
imports: import numpy
  import pandas
  import pytest
  from hypothesis import given, settings
  from pandas.testing import assert_frame_equal
  from janitor.testing_utils.strategies import categoricaldf_strategy, df_strategy
label_desc: Use image node_id 7 for calling a global function with example usage: test_default_length() without return types