code: def test_given_invalid_inputs_when_apply_quantile_based_fwer_control_then_raises_error():
      with pytest.raises(ValueError):
          assert quantile_based_fwer(
              np.array([0.1, 0.5, 1]), quantile=0
          )
  
      with pytest.raises(ValueError):
          assert quantile_based_fwer(
              np.array([0.1, 0.5, 1]), np.array([1, 2]), quantile=0.1
          )
  
      with pytest.raises(ValueError):
          assert quantile_based_fwer(
              np.array([0.1, 0.5, 1]), quantile=1.1
          )
  
      with pytest.raises(ValueError):
          assert quantile_based_fwer(
              np.array([0.1, 0.5, 1]), quantile=-0.5
          )
  
imports: import numpy
  import pytest
  from flaky import flaky
  from numpy.matlib import repmat
  from pytest import approx
  from dowhy.gcm.ml import create_hist_gradient_boost_classifier, create_hist_gradient_boost_regressor, create_linear_regressor, create_logistic_regression_classifier
  from dowhy.gcm.stats import estimate_ftest_pvalue, marginal_expectation, quantile_based_fwer
  from dowhy.gcm.util.general import geometric_median
label_desc: Use image node_id 5 for calling a global function with example usage: test_given_invalid_inputs_when_apply_quantile_based_fwer_control_then_raises_error() without return types