code: def test_quantity_simplify():
      from sympy.physics.units.util import quantity_simplify
      from sympy.physics.units import kilo, foot
      from sympy.core.symbol import symbols
  
      x, y = symbols("x y")
  
      assert quantity_simplify(
          x * (8 * kilo * newton * meter + y)
      ) == x * (8000 * meter * newton + y)
      assert (
          quantity_simplify(foot * inch * (foot + inch))
          == foot**2 * (foot + foot / 12) / 12
      )
      assert (
          quantity_simplify(
              foot * inch * (foot * foot + inch * (foot + inch))
          )
          == foot**2
          * (foot**2 + foot / 12 * (foot + foot / 12))
          / 12
      )
      assert (
          quantity_simplify(2 ** (foot / inch * kilo / 1000) * inch)
          == 4096 * foot / 12
      )
      assert (
          quantity_simplify(foot**2 * inch + inch**2 * foot)
          == 13 * foot**3 / 144
      )
  
file_path: sympy/sympy/physics/units/tests/test_util.py
imports: from sympy.core.containers import Tuple
  from sympy.core.numbers import pi
  from sympy.core.power import Pow
  from sympy.core.symbol import symbols
  from sympy.core.sympify import sympify
  from sympy.printing.str import sstr
  from sympy.physics.units import G, centimeter, coulomb, day, degree, gram, hbar, hour, inch, joule, kelvin, kilogram, kilometer, length, meter, mile, minute, newton, planck, planck_length, planck_mass, planck_temperature, planck_time, radians, second, speed_of_light, steradian, time, km
  from sympy.physics.units.util import convert_to, check_dimensions
  from sympy.testing.pytest import raises
label_desc: Use image node_id 9 for calling a global function with example usage: test_quantity_simplify() without return types