code: def ask_timezone(question, default, tzurl):
      """Prompt for time zone and validate input"""
      tz_dict = {
          tz.lower(): tz for tz in zoneinfo.available_timezones()
      }
      while True:
          r = ask(question, str, default)
          r = r.strip().replace(" ", "_").lower()
          if r in tz_dict.keys():
              r = tz_dict[r]
              break
          else:
              print(
                  "Please enter a valid time zone:\n"
                  " (check [{}])".format(tzurl)
              )
      return r
  
file_path: pelican/pelican/tools/pelican_quickstart.py
imports: import argparse
  import locale
  import os
  from typing import Mapping
  from jinja2 import Environment, FileSystemLoader
  from pelican import __version__
label_desc: Use image node_id 2 for calling a global function with example usage: ask_timezone(question, default, tzurl) and returns: r