input: Write a function to encrypt a message using a Caesar cipher. The function should take two parameters: the message to be encrypted and the shift amount. The function should return the encrypted message. If the shifted character code exceeds the printable ASCII range (126), it should wrap around to the beginning of the printable ASCII range (32).
  assert caesar_encrypt("Hello, World!", 3) == "Khoor/#Zruog$"
  assert caesar_encrypt("Python Programming.", 5) == "Udymts%Uwtlwfrrnsl0"
  assert caesar_encrypt("123ABC", 2) == "345CDE"
  assert caesar_encrypt("special~chars!", 94) == "special~chars!"
  assert caesar_encrypt("", 10) == ""
output: def caesar_encrypt(message, shift):
      encrypted_message = ""
      for char in message:
          if 32 <= ord(char) <= 126:
              new_char = chr((ord(char) - 32 + shift) % 95 + 32)
              encrypted_message += new_char
          else:
              encrypted_message += char
      return encrypted_message