class_docstr: This is an abstract base class for time zones represented by an annual
  transition into and out of DST. Child classes should implement the following
  methods:
  
      * ``__init__(self, *args, **kwargs)``
      * ``transitions(self, year)`` - this is expected to return a tuple of
        datetimes representing the DST on and off transitions in standard
        time.
  
  A fully initialized ``tzrangebase`` subclass should also provide the
  following attributes:
      * ``hasdst``: Boolean whether or not the zone uses DST.
      * ``_dst_offset`` / ``_std_offset``: :class:`datetime.timedelta` objects
        representing the respective UTC offsets.
      * ``_dst_abbr`` / ``_std_abbr``: Strings representing the timezone short
        abbreviations in DST and STD, respectively.
      * ``_hasdst``: Whether or not the zone has DST.
  
  .. versionadded:: 2.6.0
docstr: Whether or not the "wall time" of a given datetime is ambiguous in this
  zone.
  
  :param dt:
      A :py:class:`datetime.datetime`, naive or time zone aware.
  
  
  :return:
      Returns ``True`` if ambiguous, ``False`` otherwise.
  
  .. versionadded:: 2.6.0
docstr_tok: ["Whether","or","not","the","``","wall","time","''","of","a","given","datetime","is","ambiguous","in","this","zone",".",":","param","dt",":","A",":","py",":","class",":","`","datetime.datetime","`",",","naive","or","time","zone","aware",".",":","return",":","Returns","``","True","``","if","ambiguous",",","``","False","``","otherwise",".","..","versionadded",":",":","2.6.0"]
code: def is_ambiguous(self, dt):
      """
      Whether or not the "wall time" of a given datetime is ambiguous in this
      zone.
  
      :param dt:
          A :py:class:`datetime.datetime`, naive or time zone aware.
  
  
      :return:
          Returns ``True`` if ambiguous, ``False`` otherwise.
  
      .. versionadded:: 2.6.0
      """
      if not self.hasdst:
          return False
  
      start, end = self.transitions(dt.year)
  
      dt = dt.replace(tzinfo=None)
      return end <= dt < end + self._dst_base_offset
  
imports: from six import PY2
  from functools import wraps
  from datetime import datetime, timedelta, tzinfo
label_desc: Use image node_id 6 for calling the tzrangebase obj's underlying member method code with example usage: obj.is_ambiguous(dt) and returns: unknown, False