code: def test_issue_6097():
      assert (
          collect(a * y ** (2.0 * x) + b * y ** (2.0 * x), y**x)
          == (a + b) * (y**x) ** 2.0
      )
      assert (
          collect(a * 2 ** (2.0 * x) + b * 2 ** (2.0 * x), 2**x)
          == (a + b) * (2**x) ** 2.0
      )
  
imports: from sympy.core.add import Add
  from sympy.core.function import Derivative, Function, diff
  from sympy.core.mul import Mul
  from sympy.core.numbers import I, Rational
  from sympy.core.power import Pow
  from sympy.core.singleton import S
  from sympy.core.symbol import Symbol, Wild, symbols
  from sympy.functions.elementary.complexes import Abs
  from sympy.functions.elementary.exponential import exp, log
  from sympy.functions.elementary.miscellaneous import root, sqrt
  from sympy.functions.elementary.trigonometric import cos, sin
  from sympy.polys.polytools import factor
  from sympy.series.order import O
  from sympy.simplify.radsimp import collect, collect_const, fraction, radsimp, rcollect
  from sympy.core.expr import unchanged
  from sympy.core.mul import _unevaluated_Mul
  from sympy.simplify.radsimp import _unevaluated_Add, collect_sqrt, fraction_expand, collect_abs
  from sympy.testing.pytest import raises
  from sympy.abc import x, y, z, a, b, c, d
label_desc: Use image node_id 17 for calling a global function with example usage: test_issue_6097() without return types