def imul_num(p, c):
        if p in p.ring._gens_set:
            return p*c
        if not c:
            p.clear()
            return
        for exp in p:
            p[exp] *= c
        return p
As make_helper(), but considers the value as stored in memory,
dataset/ETHPy150Open sympy/sympy/sympy/polys/rings.py/PolyElement.imul_num--crossover with--dataset/ETHPy150Open numba/numba/numba/targets/base.py/BaseContext.make_data_helper