code: def check_symmetric_matrix_grads(fun, **grad_check_kwargs):
      def check(*args):
          def symmetrize(A):
              L = np.tril(A)
              return (L + T(L)) / 2.0
  
          new_fun = lambda *args: fun(symmetrize(args[0]), *args[1:])
          check_grads(new_fun, **grad_check_kwargs)(*args)
  
      return check
  
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 1 for calling a global function with example usage: check_symmetric_matrix_grads(fun) and returns: check, unknown