code: def scale(cls, *scaling):
          
          if len(scaling) == 1:
              sx = sy = float(scaling[0])
          else:
              sx, sy = scaling
          return tuple.__new__(cls, (sx, 0.0, 0.0, 0.0, sy, 0.0, 0.0, 0.0, 1.0))
docs: Create a scaling transform from a scalar or vector.
  
          :param scaling: The scaling factor. A scalar value will
              scale in both dimensions equally. A vector scaling
              value scales the dimensions independently.
          :type scaling: float or sequence
          :rtype: Affine