docstr: Return the label for time x at position pos
docstr_tok: ["Return","the","label","for","time","x","at","position","pos"]
code: def __call__(self, x, pos=None):
      """Return the label for time x at position pos"""
      x = int(round(x))
      ldates = len(self._dates)
      if x >= ldates:
          x = ldates - 1
  
      if x < 0:
          x = 0
  
      ix = self._dates[x]
  
      return super(AutoDateFormatter, self).__call__(ix, pos)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import datetime
  import warnings
  from matplotlib.dates import AutoDateLocator
  from matplotlib.dates import RRuleLocator
  from matplotlib.dates import AutoDateFormatter
  from matplotlib.dates import HOURS_PER_DAY, MIN_PER_HOUR, SEC_PER_MIN, MONTHS_PER_YEAR, DAYS_PER_WEEK, SEC_PER_HOUR, SEC_PER_DAY, num2date, rrulewrapper, YearLocator, MicrosecondLocator
  from dateutil.relativedelta import relativedelta
  import numpy
label_desc: Use image node_id 2 for calling the AutoDateFormatter obj's underlying member method code with example usage: obj.__call__(x, pos) and returns: super