code: def matrix_transpose(m):
      
      num_cols = len(m)
      num_rows = len(m[0])
      m_t = []
      for i in range(num_rows):
          temp = []
          for j in range(num_cols):
              temp.append(m[j][i])
          m_t.append(temp)
      return m_t
docs: Transposes the input matrix.
  
      The input matrix :math:`m` is a 2-dimensional array.
  
      :param m: input matrix with dimensions :math:`(n \\times m)`
      :type m: list, tuple
      :return: transpose matrix with dimensions :math:`(m \\times n)`
      :rtype: list