code: def test_leadterm():
      assert (3 + 2 * x ** (log(3) / log(2) - 1)).leadterm(x) == (3, 0)
  
imports: from sympy.core.numbers import Rational, oo, pi
  from sympy.core.singleton import S
  from sympy.core.symbol import Symbol
  from sympy.functions.elementary.exponential import exp, log
  from sympy.functions.elementary.miscellaneous import root, sqrt
  from sympy.functions.elementary.trigonometric import asin, cos, sin, tan
  from sympy.polys.rationaltools import together
  from sympy.series.limits import limit
label_desc: Use image node_id 1 for calling a global function with example usage: test_leadterm() without return types