def METHOD_NAME(self, **kwargs):
    # Create a copy of me with different attributes
    warnings.warn(
        "The 'setup' function is deprecated; instead, "
        "update attributes with method=clear/preserve/overwrite",
        DeprecationWarning,
        2,
    )
    attributes = {**kwargs}
    self._check_attributes(attributes)
    return DynamicAttributeLogger(logging.getLogger(self.name), attributes)