def __new__(cls, hostname=None, **kwargs):
        if "uuid" not in kwargs:
            # To be removed in https://clusterhq.atlassian.net/browse/FLOC-1795
            warn("UUID is required, this is for backwards compat with existing"
                 " tests only. If you see this in production code that's "
                 "a bug.", DeprecationWarning, stacklevel=2)
            kwargs["uuid"] = ip_to_uuid(hostname)
        return PClass.__new__(cls, **kwargs)
dataset/ETHPy150Open ClusterHQ/flocker/flocker/control/_model.py/Node.__new__/original