code: def plot_weights(support, weights_func, xlabels, xticks):
      fig = plt.figure(figsize=(12, 8))
      ax = fig.add_subplot(111)
      ax.plot(support, weights_func(support))
      ax.set_xticks(xticks)
      ax.set_xticklabels(xlabels, fontsize=16)
      ax.set_ylim(-0.1, 1.1)
      return ax
  
file_path: statsmodels/examples/python/robust_models_1.py
imports: from statsmodels.compat import lmap
  import numpy
  from scipy import stats
  import matplotlib.pyplot
  import statsmodels.api
  from statsmodels.graphics.api import abline_plot
  from statsmodels.formula.api import ols, rlm
  from matplotlib.patches import Ellipse
  from IPython.display import Image
label_desc: Use image node_id 1 for calling a global function with example usage: plot_weights(support, weights_func, xlabels, xticks) and returns: ax