code: def check_xy(self, xy):
      (x, y) = xy
      if not (0 <= x < self.xsize and 0 <= y < self.ysize):
          msg = "pixel location out of range"
          raise ValueError(msg)
      return xy
  
imports: import logging
  import sys
  from ._deprecate import deprecate
label_desc: Use image node_id 5 for calling the PyAccess obj's underlying member method code with example usage: obj.check_xy(xy) and returns: xy