input: Write a python function to calculate the md5 checksum of a given firmware.
  assert calculate_md5(b"sample firmware data") == "e2075474294983e013ee4dd220cdab94"
  assert calculate_md5(b"another example firmware") == "72b302bf297a228a75730123efef7c41"
  assert calculate_md5(b"") == "d41d8cd98f00b204e9800998ecf8427e"
output: import hashlib
  
  def calculate_md5(firmware_data):
      md5_hash = hashlib.md5()
      md5_hash.update(firmware_data)
      return md5_hash.hexdigest()