code: def updateBounds(bounds, p, min=min, max=max):
      """Add a point to a bounding rectangle.
  
      Args:
          bounds: A bounding rectangle expressed as a tuple
              ``(xMin, yMin, xMax, yMax), or None``.
          p: A 2D tuple representing a point.
          min,max: functions to compute the minimum and maximum.
  
      Returns:
          The updated bounding rectangle ``(xMin, yMin, xMax, yMax)``.
      """
      (x, y) = p
      if bounds is None:
          return x, y, x, y
      xMin, yMin, xMax, yMax = bounds
      return min(xMin, x), min(yMin, y), max(xMax, x), max(yMax, y)
  
imports: from fontTools.misc.roundTools import otRound
  from fontTools.misc.vector import Vector
  import math
  import warnings
label_desc: Use image node_id 3 for calling a global function with example usage: updateBounds(bounds, p, min, max) and returns: min,  min,  max,  max, x,  y,  x,  y