code: def matrix_dagger(e):
      """Return the dagger of a sympy/numpy/scipy.sparse matrix."""
      if isinstance(e, MatrixBase):
          return e.H
      elif isinstance(e, (numpy_ndarray, scipy_sparse_matrix)):
          return e.conjugate().transpose()
      raise TypeError(
          "Expected sympy/numpy/scipy.sparse matrix, got: %r" % e
      )
  
imports: from sympy.core.expr import Expr
  from sympy.core.numbers import I
  from sympy.core.singleton import S
  from sympy.matrices.matrixbase import MatrixBase
  from sympy.matrices import eye, zeros
  from sympy.external import import_module
label_desc: Use image node_id 9 for calling a global function with example usage: matrix_dagger(e) and returns: e, e