input: Write a function to encrypt a message using a Caesar cipher. The function should take a string message and an integer shift as inputs and return the encrypted message. If the encrypted character value exceeds 126, it should wrap around from 32.
  assert caesar_encrypt("Hello, World!", 5) == "Mjqqt,%]twqi&"
  assert caesar_encrypt("Python Programming", 3) == "Sbwkrq%Surtjudpplqj"
  assert caesar_encrypt("Caesar cipher", 7) == "Jhlzhy%jpufyw"
  assert caesar_encrypt("Challenge Accepted", 10) == "Mtbnvkloo*Kddobnnov"
  assert caesar_encrypt("Test", 26) == "Test"
output: def caesar_encrypt(message, shift):
      encrypted_message = ""
      for char in message:
          if char.isalpha():
              shift_amount = shift % 26
              if char.islower():
                  new_char = chr((ord(char) - ord('a') + shift_amount) % 26 + ord('a'))
              else:
                  new_char = chr((ord(char) - ord('A') + shift_amount) % 26 + ord('A'))
          else:
              new_char = chr((ord(char) + shift - 32) % 95 + 32)
          encrypted_message += new_char
      return encrypted_message