code: def remove_ticks(ax, x=False, y=False):
      """
      Remove ticks from axis.
  
      Parameters:
        ax: axes to work on
        x: if True, remove xticks. Default False.
        y: if True, remove yticks. Default False.
  
      Examples:
      removeticks(ax, x=True)
      removeticks(ax, x=True, y=True)
      """
      if x:
          ax.xaxis.set_ticks_position("none")
      if y:
          ax.yaxis.set_ticks_position("none")
      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 10 for calling a global function with example usage: remove_ticks(ax, x, y) and returns: ax