def get_equiv_const(self, obj):
        """If the given object is equivalent to a constant scalar,
        return the scalar value, or None otherwise.
        """
        names = self._get_names(obj)
        if len(names) != 1:
            return None
        return super(ShapeEquivSet, self).get_equiv_const(names[0])
If the given object is equivalent to a constant scalar,
        return the scalar value, or None otherwise.
        
numba/parfors/array_analysis.py