def _get_or_add_ind(self, x):
        """Return the internal index (greater or equal to 0) of the given
        object, or create a new one if not found.
        """
        if x in self.obj_to_ind:
            i = self.obj_to_ind[x]
        else:
            i = self.next_ind
            self.next_ind += 1
        return i
Return the internal index (greater or equal to 0) of the given
        object, or create a new one if not found.
        
numba/parfors/array_analysis.py