def uniquify_varnames(self, fields):
        """Tests if the fields names are unique. If they aren't, a
           transformation is applied to ensure unicity.

        """
        unique_names = set([fields[key]['name'] for key in fields])
        if len(unique_names) < len(fields):
            self.transform_repeated_names(fields)
dataset/ETHPy150Open bigmlcom/python/bigml/modelfields.py/ModelFields.uniquify_varnames/original