input: Write a python function to verify if a given password matches a hashed password using bcrypt.
  assert checkPassword(bcrypt.hashpw(b"password123", bcrypt.gensalt()), b"password123") == True
  assert checkPassword(bcrypt.hashpw(b"password123", bcrypt.gensalt()), b"wrongpassword") == False
  assert checkPassword(bcrypt.hashpw(b"mysecurepassword", bcrypt.gensalt()), b"mysecurepassword") == True
output: import bcrypt
  
  def checkPassword(hashed_password, password):
      return bcrypt.checkpw(password, hashed_password)