code: def remove_spines(ax, sides):
      """
      Remove spines of axis.
  
      Parameters:
        ax: axes to operate on
        sides: list of sides: top, left, bottom, right
  
      Examples:
      removespines(ax, ['top'])
      removespines(ax, ['top', 'bottom', 'right', 'left'])
      """
      for side in sides:
          ax.spines[side].set_visible(False)
      return ax
  
imports: import warnings
  from typing import Union, Optional, Iterable
  from scipy import stats
  import pandas
  import numpy
  from lifelines.utils import coalesce, CensoringType, _group_event_table_by_intervals
label_desc: Use image node_id 8 for calling a global function with example usage: remove_spines(ax, sides) and returns: ax