code: def is_associative(x):
      return isinstance(x, Compound) and (
          x.op in ("Add", "Mul", "CAdd", "CMul")
      )
  
file_path: sympy/sympy/unify/tests/test_unify.py
imports: from sympy.unify.core import Compound, Variable, CondVariable, allcombinations
  from sympy.unify import core
label_desc: Use image node_id 1 for calling a global function with example usage: is_associative(x) and returns: unknown