class_docstr: Representation of a rectangular area in a 2D coordinate system.
  
  Parameters
  ----------
  *args : arguments
      Can be in the form `Rect(x, y, w, h)`, `Rect(pos, size)`, or
      `Rect(Rect)`.
docstr: Return a Rect with the same bounds but with axes inverted
  
  Parameters
  ----------
  x : bool
      Flip the X axis.
  y : bool
      Flip the Y axis.
  
  Returns
  -------
  rect : instance of Rect
      The flipped rectangle.
docstr_tok: ["Return","a","Rect","with","the","same","bounds","but","with","axes","inverted","Parameters","--","--","--","--","--","x",":","bool","Flip","the","X","axis",".","y",":","bool","Flip","the","Y","axis",".","Returns","--","--","--","-","rect",":","instance","of","Rect","The","flipped","rectangle","."]
code: def flipped(self, x=False, y=True):
      """Return a Rect with the same bounds but with axes inverted
  
      Parameters
      ----------
      x : bool
          Flip the X axis.
      y : bool
          Flip the Y axis.
  
      Returns
      -------
      rect : instance of Rect
          The flipped rectangle.
      """
      pos = list(self.pos)
      size = list(self.size)
      for i, flip in enumerate((x, y)):
          if flip:
              pos[i] += size[i]
              size[i] *= -1
      return Rect(pos, size)
  
imports: import numpy
label_desc: Use image node_id 22 for calling the Rect obj's underlying member method code with example usage: obj.flipped(x, y) and returns: Rect