input: from typing import List
  
  def generate_random_password(string: str) -> str:
      """ Generates a random password by selecting 8 characters from the given string.
      >>> generate_random_password("abcdefghijklmnopqrstuvwxyz01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()?")
      'aB3d!f7G'
      >>> generate_random_password("qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890!@#$%^&*()")
      'qW3r!@5T'
      """
      import random
      return "".join(random.sample(string, 8))
output:     import random
      return "".join(random.sample(string, 8))