code: def save_favorite_query(arg, **_):
      
  
      usage = 'Syntax: \\fs name query.\n\n' + favoritequeries.usage
      if not arg:
          return [(None, None, None, usage)]
  
      name, _, query = arg.partition(' ')
  
      # If either name or query is missing then print the usage and complain.
      if (not name) or (not query):
          return [(None, None, None,
              usage + 'Err: Both name and query are required.')]
  
      favoritequeries.save(name, query)
      return [(None, None, None, "Saved.")]
docs: Save a new favorite query.
      Returns (title, rows, headers, status)