input: from typing import List
  
  
  def extract_emails(text: str) -> List[str]:
      """Extract all public email addresses from a given string.
      >>> extract_emails("My email is john@example.com and yours is john@gmail.com")
      ['john@example.com', 'john@gmail.com']
      """
      import re
      emails = re.findall(r"[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+", text)
      return emails
output:     import re
      emails = re.findall(r"[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+", text)
      return emails