code: def _test_term(coeff, func, order):
      r"""
      Linear Euler ODEs have the form  K*x**order*diff(y(x), x, order) = F(x),
      where K is independent of x and y(x), order>= 0.
      So we need to check that for each term, coeff == K*x**order from
      some K.  We have a few cases, since coeff may have several
      different types.
      """
      x = func.args[0]
      f = func.func
      if order < 0:
          raise ValueError("order should be greater than 0")
      if coeff == 0:
          return True
      if order == 0:
          if x in coeff.free_symbols:
              return False
          return True
      if coeff.is_Mul:
          if coeff.has(f(x)):
              return False
          return x**order in coeff.args
      elif coeff.is_Pow:
          return coeff.as_base_exp() == (x, order)
      elif order == 1:
          return x == coeff
      return False
  
imports: from collections import defaultdict
  from sympy.core import Add, S
  from sympy.core.function import diff, expand, _mexpand, expand_mul
  from sympy.core.relational import Eq
  from sympy.core.sorting import default_sort_key
  from sympy.core.symbol import Dummy, Wild
  from sympy.functions import exp, cos, cosh, im, log, re, sin, sinh, atan2, conjugate
  from sympy.integrals import Integral
  from sympy.polys import Poly, RootOf, rootof, roots
  from sympy.simplify import collect, simplify, separatevars, powsimp, trigsimp
  from sympy.utilities import numbered_symbols
  from sympy.solvers.solvers import solve
  from sympy.matrices import wronskian
  from .subscheck import sub_func_doit
  from sympy.solvers.ode.ode import get_numbered_constants
label_desc: Use image node_id 1 for calling a global function with example usage: _test_term(coeff, func, order) and returns: False, True, True, unknown, False, False, unknown, unknown