def is_simple(self, x):
        p = self.args[0].as_poly(x)
        if p:
            return p.degree() == 1
        return False
is_simple(self, x)
dataset/ETHPy150Open sympy/sympy/sympy/functions/special/delta_functions.py/DiracDelta.is_simple