code: def _GetTransposedMatrices(x, x_name, kwargs):
      if kwargs["transpose_" + x_name] is True:
          return x.T
      elif kwargs["adjoint_" + x_name] is True:
          return np.conj(x.T)
      else:
          return x
  
imports: import operator
  import numpy
  from tensorflow.python import tf2
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gradient_checker_v2
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling a global function with example usage: _GetTransposedMatrices(x, x_name, kwargs) and returns: x, np, x