def METHOD_NAME(self, name):
    if name in self.names:
        ret_name = f"{name}_{self.names[name]}"
        self.names[name] += 1
    else:
        self.names[name] = 1
        ret_name = name
    return ret_name