input: Write a python function to parse book details from the given HTML and return a list of dictionaries containing book information.
  assert parse_book_details(html) == [{'Id': '123456', 'Book Name': 'Programming in Python', 'Cost': '100'}, {'Id': '654321', 'Book Name': 'Networking Essentials', 'Cost': '200'}]
  assert parse_book_details("<html><body><table><tbody><tr><td>789012</td><td>Data Structures</td><td>150</td></tr></tbody></table></body></html>") == [{'Id': '789012', 'Book Name': 'Data Structures', 'Cost': '150'}]
  assert parse_book_details("<html><body><table><tbody></tbody></table></body></html>") == []
output: def parse_book_details(html):
      from bs4 import BeautifulSoup
      
      soup = BeautifulSoup(html, 'html.parser')
      table_rows = soup.find_all('tr')
      
      books = []
      for row in table_rows:
          cells = row.find_all('td')
          if len(cells) == 3:
              book = {
                  'Id': cells[0].text.strip(),
                  'Book Name': cells[1].text.strip(),
                  'Cost': cells[2].text.strip()
              }
              books.append(book)
      
      return books