code: def test_deprecation_contrast_type(rng, set_up_glm):
      """Throw deprecation warning when using contrast_type as parameter."""
      labels, results, q = set_up_glm(rng, "ar1")
      con_val = np.eye(q)[0]
  
      with pytest.warns(DeprecationWarning, match="0.13.0"):
          compute_contrast(
              labels=labels,
              regression_result=results,
              con_val=con_val,
              contrast_type="t",
          )
  
imports: import numpy
  import pytest
  import scipy.stats
  from numpy.testing import assert_almost_equal
  from sklearn.datasets import make_regression
  from sklearn.linear_model import LinearRegression
  from nilearn.glm.contrasts import Contrast, _compute_fixed_effects_params, compute_contrast, compute_fixed_effect_contrast, expression_to_contrast_vector
  from nilearn.glm.first_level import run_glm
label_desc: Use image node_id 4 for calling a global function with example usage: test_deprecation_contrast_type(rng, set_up_glm) without return types