input: 
  from typing import List
  
  def caesar_encrypt(message: str, shift: int) -> str:
      """
      Encrypts a given message using a Caesar cipher with the specified shift.
      Each character in the message is shifted by the specified number of positions in the ASCII table.
      If the shifted character exceeds the ASCII value of '~', it wraps around by subtracting 94.
  
      >>> caesar_encrypt("hello", 3)
      'khoor'
      >>> caesar_encrypt("abc", 1)
      'bcd'
      >>> caesar_encrypt("xyz", 4)
      '|}~'
      >>> caesar_encrypt("!#12", 2)
      '$&34'
      """
      encrypted_message = ""
      for c in message:
          encrypted_c = ord(c) + shift
          if encrypted_c > 126:
              encrypted_c -= 94
          encrypted_message += chr(encrypted_c)
      return encrypted_message
  
output:     encrypted_message = ""
      for c in message:
          encrypted_c = ord(c) + shift
          if encrypted_c > 126:
              encrypted_c -= 94
          encrypted_message += chr(encrypted_c)
      return encrypted_message