input: from typing import List
  
  def generate_random_password(possible_characters: List[str]) -> str:
      """ Generates a random password consisting of 8 characters chosen from the given list of possible characters.
      >>> generate_random_password(list("abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?"))
      'aB3@xY7z'
      >>> generate_random_password(list("ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"))
      'G4H7J9K2'
      """
      import random
      password = "".join(random.sample(possible_characters, 8))
      return password
output:     import random
      password = "".join(random.sample(possible_characters, 8))
      return password