def add_localhost(func):
    def inner(*args, **kwargs):
        ips = func(*args, **kwargs)
        localhost = '127.0.0.1'
        if localhost not in ips:
            ips.append(localhost)
        return ips
    return inner
dataset/ETHPy150Open chineking/cola/cola/core/utils.py/add_localhost/original