input: Write a python function to log the current time in a given timezone every 20 minutes.
  assert logtime(timezone('UTC'))  # This should log the time in UTC timezone.
  assert logtime(timezone('America/New_York'))  # This should log the time in New York timezone.
  assert logtime(timezone('Asia/Tokyo'))  # This should log the time in Tokyo timezone.
output: import time
  import logging
  from datetime import datetime
  from pytz import timezone
  
  def logtime(tz):
      logging.basicConfig(level=logging.INFO)
      while True:
          current_time = datetime.now(tz)
          logging.info(f"Current time in {tz.zone}: {current_time.strftime('%Y-%m-%d %H:%M:%S')}")
          time.sleep(1200)