input: 
  import string
  import random
  
  def generate_random_password(length: int = 8) -> str:
      """ Generate a Random Password of the given length, which contains at least one of each character type: lowercase, uppercase, digits, and special characters.
      >>> generate_random_password()
      'A1b!2c@3'
      >>> generate_random_password(12)
      'B2e$3f#4G%5h'
      """
      special_characters = "!#$%&'()*+,-./:;<=>?@[\]^_`{|}~"
      
      password = random.choice(string.ascii_lowercase)
      password += random.choice(string.ascii_uppercase)
      password += random.choice(string.digits)
      password += random.choice(special_characters)
      
      all_characters = string.ascii_lowercase + string.ascii_uppercase + string.digits + special_characters
      
      for i in range(length - 4):
          password += random.choice(all_characters)
  
      password = ''.join(random.sample(password, len(password)))
      
      return password
  
output:     special_characters = "!#$%&'()*+,-./:;<=>?@[\]^_`{|}~"
      
      password = random.choice(string.ascii_lowercase)
      password += random.choice(string.ascii_uppercase)
      password += random.choice(string.digits)
      password += random.choice(special_characters)
      
      all_characters = string.ascii_lowercase + string.ascii_uppercase + string.digits + special_characters
      
      for i in range(length - 4):
          password += random.choice(all_characters)
  
      password = ''.join(random.sample(password, len(password)))
      
      return password