code: def allow_sharexy(fn):
      @functools.wraps(fn)
      def wrapper(*args, **kwargs):
          if "sharexy" in kwargs:
              assert ("sharex" not in kwargs) and (
                  "sharey" not in kwargs
              ), "Cannot specify sharexy with sharex or sharey"
              kwargs["sharex"] = kwargs["sharey"] = kwargs.pop(
                  "sharexy"
              )
          return fn(*args, **kwargs)
  
      if wrapper.__doc__ is not None:
          wrapper.__doc__ += "\n        sharexy=ax can be used to specify sharex=ax, sharey=ax"
      return wrapper
  
imports: import functools
  import logging
  import os
  import sys
  import numpy
  import wx
  from cellprofiler_core.image import FileImage
  from cellprofiler_core.preferences import reset_cpfigure_position
  from cellprofiler_core.preferences import get_interpolation_mode
  from cellprofiler_core.preferences import IM_NEAREST
  from cellprofiler_core.preferences import IM_BILINEAR
  from cellprofiler_core.preferences import IM_BICUBIC
  from ..None import errordialog
label_desc: Use image node_id 7 for calling a global function with example usage: allow_sharexy(fn) and returns: wrapper, fn