code: def beanplot(data, plot_opts={}, jitter=False):
      """helper function to try out different plot options"""
      fig = plt.figure()
      ax = fig.add_subplot(111)
      plot_opts_ = {
          "cutoff_val": 5,
          "cutoff_type": "abs",
          "label_fontsize": "small",
          "label_rotation": 30,
      }
      plot_opts_.update(plot_opts)
      sm.graphics.beanplot(
          data,
          ax=ax,
          labels=labels,
          jitter=jitter,
          plot_opts=plot_opts_,
      )
      ax.set_xlabel("Party identification of respondent.")
      ax.set_ylabel("Age")
  
imports: import numpy
  import matplotlib.pyplot
  import statsmodels.api
  import numpy
  import matplotlib.pyplot
  import statsmodels.api
label_desc: Use image node_id 1 for calling a global function with example usage: beanplot(data, plot_opts, jitter) without return types