input: Write a function to encrypt a message using a Caesar cipher. The function should take a string `message` and an integer `shift` as input, and return the encrypted message. Ensure that if the shifted character value exceeds 126, it wraps around using the ASCII table.
  assert caesar_encrypt("Hello, World!", 3)=="Khoor/#Zruog$"
  assert caesar_encrypt("abc", 5)=="fgh"
  assert caesar_encrypt("xyz", 3)=="{|}"
  assert caesar_encrypt("!@#$%", 1)=="\"A%BC"
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