class_docstr: Validate an email.
  
  Example::
  
      parser = reqparse.RequestParser()
      parser.add_argument('email', type=inputs.email(dns=True))
  
  Input to the ``email`` argument will be rejected if it does not match an email
  and if domain does not exists.
  
  :param bool check: Check the domain exists (perform a DNS resolution)
  :param bool ip: Allow IP (both ipv4/ipv6) as domain
  :param bool local: Allow localhost (both string or ip) as domain
  :param list|tuple domains: Restrict valid domains to this list
  :param list|tuple exclude: Exclude some domains
class_docstr_tok: ["Validate","an","email",".","Example",":",":","parser","=","reqparse.RequestParser","(",")","parser.add_argument","(","'email","'",",","type=inputs.email","(","dns=True",")",")","Input","to","the","``","email","``","argument","will","be","rejected","if","it","does","not","match","an","email","and","if","domain","does","not","exists",".",":","param","bool","check",":","Check","the","domain","exists","(","perform","a","DNS","resolution",")",":","param","bool","ip",":","Allow","IP","(","both","ipv4\/ipv6",")","as","domain",":","param","bool","local",":","Allow","localhost","(","both","string","or","ip",")","as","domain",":","param","list|tuple","domains",":","Restrict","valid","domains","to","this","list",":","param","list|tuple","exclude",":","Exclude","some","domains"]
code: def __schema__(self):
      return {
          "type": "string",
          "format": "email",
      }
  
imports: from __future__ import unicode_literals
  import re
  import socket
  from datetime import datetime, time, timedelta
  from email.utils import parsedate_tz, mktime_tz
  from six.moves.urllib.parse import urlparse
  import aniso8601
  import pytz
label_desc: Use image node_id 5 for calling the email obj's underlying member method code with example usage: obj.__schema__() and returns: dict