code: def get_merkle_root(merkle_tree: MerkleTree) -> bytes:
      
      assert merkle_tree.layers, 'the merkle tree layers are empty'
      assert merkle_tree.layers[-1], 'the root layer is empty'
  
      return merkle_tree.layers[-1][0]
docs: Returns the root element of the merkle tree.