code: def plot_axis(
      ax, locator=None, xmax="2002-02-01", fmt=None, formatter=None
  ):
      """Set up common parameters for the Axes in the example."""
      ax.spines[["left", "right", "top"]].set_visible(False)
      ax.yaxis.set_major_locator(ticker.NullLocator())
      ax.tick_params(which="major", width=1.00, length=5)
      ax.tick_params(which="minor", width=0.75, length=2.5)
      ax.set_xlim(np.datetime64("2000-02-01"), np.datetime64(xmax))
      if locator:
          ax.xaxis.set_major_locator(eval(locator))
          ax.xaxis.set_major_formatter(DateFormatter(fmt))
      else:
          ax.xaxis.set_major_formatter(eval(formatter))
      ax.text(
          0.0,
          0.2,
          locator or formatter,
          transform=ax.transAxes,
          fontsize=14,
          fontname="Monospace",
          color="tab:blue",
      )
  
imports: import matplotlib.pyplot
  import numpy
  from matplotlib.dates import FR, MO, MONTHLY, SA, SU, TH, TU, WE, AutoDateFormatter, AutoDateLocator, ConciseDateFormatter, DateFormatter, DayLocator, HourLocator, MicrosecondLocator, MinuteLocator, MonthLocator, RRuleLocator, SecondLocator, WeekdayLocator, YearLocator, rrulewrapper
  import matplotlib.ticker
label_desc: Use image node_id 1 for calling a global function with example usage: plot_axis(ax, locator, xmax, fmt, formatter) without return types