code: def _trans_to_cublas_op(trans):
      if trans == "N" or trans == cublas.CUBLAS_OP_N:
          trans = cublas.CUBLAS_OP_N
      elif trans == "T" or trans == cublas.CUBLAS_OP_T:
          trans = cublas.CUBLAS_OP_T
      elif trans == "H" or trans == cublas.CUBLAS_OP_C:
          trans = cublas.CUBLAS_OP_C
      else:
          raise TypeError("invalid trans (actual: {})".format(trans))
      return trans
  
imports: import numpy
  from numpy import linalg
  import warnings
  import cupy
  from cupy import _core
  from cupy_backends.cuda.libs import cublas
  from cupy.cuda import device
  from cupy.linalg import _util
label_desc: Use image node_id 23 for calling a global function with example usage: _trans_to_cublas_op(trans) and returns: trans