code: def set_xticklabels(ax, coord_labels):
      """Set xticklabels to label list using Matplotlib default formatter."""
      ax.xaxis.get_major_locator().set_params(
          nbins=9, steps=[1, 2, 5, 10]
      )
      xticks = ax.get_xticks().astype(np.int64)
      xticks = xticks[(xticks >= 0) & (xticks < len(coord_labels))]
      if len(xticks) > len(coord_labels):
          ax.set_xticks(np.arange(len(coord_labels)))
          ax.set_xticklabels(coord_labels)
      else:
          ax.set_xticks(xticks)
          ax.set_xticklabels(coord_labels[xticks])
  
imports: import importlib
  import warnings
  from typing import Any, Dict
  import matplotlib
  import numpy
  import packaging
  from matplotlib.colors import to_hex
  from scipy.stats import mode, rankdata
  from scipy.interpolate import CubicSpline
  from ..rcparams import rcParams
  from ..stats.density_utils import kde
  from ..stats import hdi
label_desc: Use image node_id 9 for calling a global function with example usage: set_xticklabels(ax, coord_labels) without return types