code: def _remove_any_twin(self, ax):
      self.parasites.remove(ax)
      restore = ["top", "right"]
      if ax._sharex:
          restore.remove("top")
      if ax._sharey:
          restore.remove("right")
      self.axis[tuple(restore)].set_visible(True)
      self.axis[tuple(restore)].toggle(ticklabels=False, label=False)
  
imports: from matplotlib import _api, cbook
  import matplotlib.artist
  import matplotlib.transforms
  from matplotlib.transforms import Bbox
  from .mpl_axes import Axes
label_desc: Use image node_id 10 for calling the HostAxesBase obj's underlying member method code with example usage: obj._remove_any_twin(ax) without return types