input: Write a function that takes in a string representing a date and time in the format 'YYYY-MM-DD HH:MM' and returns the same date and time in the format 'DayOfWeek Month Day Hour:Minute AM/PM'. If the given string is empty, return "Invalid Input".
  assert get_formatted_date_time("2021-03-07 17:30")==Sunday March 7 5:30 PM
  assert get_formatted_date_time("2023-01-15 09:45")==Sunday January 15 9:45 AM
  assert get_formatted_date_time("")=="Invalid Input"
  assert get_formatted_date_time("2022-11-30 14:15")==Wednesday November 30 2:15 PM
output: def get_formatted_date_time(date_time_str):
      if not date_time_str:
          return "Invalid Input"
      from datetime import datetime
      date_time = datetime.strptime(date_time_str, '%Y-%m-%d %H:%M')
      day_of_week = date_time.strftime('%A')
      month = date_time.strftime('%B')
      day = date_time.day
      hour = date_time.hour
      minute = date_time.minute
      period = 'AM' if hour < 12 else 'PM'
      hour = hour % 12
      hour = 12 if hour == 0 else hour
      return f"{day_of_week} {month} {day} {hour}:{minute:02d} {period}"