def METHOD_NAME(self, instance, **kwds):
    """
    Apply the transformation.  This is called by ``apply_to`` in the
    superclass, and should not be called directly.  ``apply_to`` takes the
    same arguments.
    Args:
        instance: A block or model to apply the transformation to
        substitute: A list-like of two-element list-likes.  Each two element
            list-like specifies a replacement of the first variable by the
            second.  SimpleVar, IndexedVar, _GeneralVarData, and Reference are
            all accepted types.
    Returns:
        None
    """
    config = self.CONFIG(kwds)
    self.replace(instance, config.substitute)