code: def convert_time_to_hour_minute(hour, minute, convention):
      """
      Convert time to hour, minute
      """
      if hour is None:
          hour = 0
      if minute is None:
          minute = 0
      if convention is None:
          convention = "am"
  
      hour = int(hour)
      minute = int(minute)
  
      if convention.lower() == "pm":
          hour += 12
  
      return {"hours": hour, "minutes": minute}
  
file_path: ChatterBot/chatterbot/parsing.py
imports: import re
  from datetime import timedelta, datetime
  import calendar
label_desc: Use image node_id 2 for calling a global function with example usage: convert_time_to_hour_minute(hour, minute, convention) and returns: dict