code: def match_complex(fft_fun, mat):
      # ensure hermitian by doing a fft
      if fft_fun.__name__.startswith("ir"):
          return getattr(np.fft, fft_fun.__name__[1:])(mat)
      else:
          return mat
  
imports: from __future__ import absolute_import
  from functools import partial
  import autograd.numpy
  import autograd.numpy.random
  from autograd.test_util import check_grads
  from autograd import grad
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: match_complex(fft_fun, mat) and returns: getattr, mat