code: def test_slogdet_3d():
      fun = lambda x: np.sum(np.linalg.slogdet(x)[1])
      mat = np.concatenate(
          [(rand_psd(5) + 5 * np.eye(5))[None, ...] for _ in range(3)]
      )
      check_grads(fun)(mat)
  
imports: from __future__ import absolute_import
  from builtins import range
  import itertools
  import autograd.numpy
  import autograd.numpy.random
  from autograd.test_util import check_grads
  from autograd import tuple
  from autograd import grad
  from functools import partial
  import pytest
label_desc: Use image node_id 14 for calling a global function with example usage: test_slogdet_3d() without return types