code: def test_ev_copula_distr(case):
      # check ev copulas, cdf and transform against R `evd` package
      ev_tr, v1, v2, args, res1 = case
      u = [v1, v2]
      res = copula_bv_ev(u, ev_tr, args=args)
      assert_allclose(res, res1, rtol=1e-13)
  
      ev = ExtremeValueCopula(ev_tr)
      cdf1 = ev.cdf(u, args)
      assert_allclose(cdf1, res1, rtol=1e-13)
  
      cev = CopulaDistribution(ev, [uniform, uniform], cop_args=args)
      cdfd = cev.cdf(np.array(u), cop_args=args)
      assert_allclose(cdfd, res1, rtol=1e-13)
      assert cdfd.shape == ()
  
      # using list u
      cdfd = cev.cdf(u, cop_args=args)
      assert_allclose(cdfd, res1, rtol=1e-13)
      assert cdfd.shape == ()
  
      # check vector values for u
      # bilogistic is not vectorized, uses integrate.quad
      if ev_tr != trev.transform_bilogistic:
          cdfd = cev.cdf(np.array(u) * np.ones((3, 1)), cop_args=args)
          assert_allclose(cdfd, res1, rtol=1e-13)
          assert cdfd.shape == (3,)
  
imports: import warnings
  from statsmodels.compat.pytest import pytest_warns
  from statsmodels.compat.scipy import SP_LT_15
  import numpy
  from numpy.testing import assert_allclose, assert_array_almost_equal
  import pytest
  from scipy import stats
  from statsmodels.distributions.copula.archimedean import ArchimedeanCopula, ClaytonCopula, FrankCopula, GumbelCopula, _debyem1_expansion
  from statsmodels.distributions.copula.copulas import CopulaDistribution
  import statsmodels.distributions.copula.depfunc_ev
  from statsmodels.distributions.copula.elliptical import GaussianCopula, StudentTCopula
  from statsmodels.distributions.copula.extreme_value import ExtremeValueCopula, copula_bv_ev
  from statsmodels.distributions.copula.other_copulas import IndependenceCopula
  import statsmodels.distributions.copula.transforms
  from statsmodels.distributions.tools import approx_copula_pdf, frequencies_fromdata
  from statsmodels.tools.numdiff import approx_fprime_cs, approx_hess
label_desc: Use image node_id 5 for calling a global function with example usage: test_ev_copula_distr(case) without return types