input: Write a python function to multiply two matrices and handle incompatible matrices.
  assert MultidimensionalMatrix(3).multiply_matrix([[1, 2], [3, 4]], [[5, 6], [7, 8]]) == [[19, 22], [43, 50]]
  assert MultidimensionalMatrix(2).multiply_matrix([[1, 2], [3, 4], [5, 6]], [[7, 8], [9, 10]]) == [[25, 28], [57, 64], [89, 100]]
  assert MultidimensionalMatrix(2).multiply_matrix([[1, 2]], [[3], [4]]) == [[11]]
  assert MultidimensionalMatrix(3).multiply_matrix([[1, 2], [3, 4]], [[5, 6]]) == "Incompatible matrix"
output: class MultidimensionalMatrix:
      def __init__(self, dimension):
          self.dimension = dimension
  
      def multiply_matrix(self, A, B):
          if len(A[0]) != len(B):
              return "Incompatible matrix"
          
          result = [[0] * len(B[0]) for _ in range(len(A))]
          for i in range(len(A)):
              for j in range(len(B[0])):
                  for k in range(len(B)):
                      result[i][j] += A[i][k] * B[k][j]
                      
          return result