input: from typing import List
  
  def generate_password(chars: List[str], pwd_length: int) -> str:
      """Generate a random password of the specified length using the given characters,
      ensuring that at least one special character is included.
      >>> generate_password(list(string.ascii_letters + string.digits + string.punctuation), 8)
      'A1b@CdEf'
      """
output:     import random
      special_chars = [c for c in chars if not c.isalnum()]
      if not special_chars:
          raise ValueError("No special characters provided in the list.")
      password = [random.choice(special_chars)]
      password += random.choices(chars, k=pwd_length-1)
      random.shuffle(password)
      return ''.join(password)