code: def test_issue_24211():
      from sympy.physics.units import (
          time,
          velocity,
          acceleration,
          second,
          meter,
      )
  
      V1 = Quantity("V1")
      SI.set_quantity_dimension(V1, velocity)
      SI.set_quantity_scale_factor(V1, 1 * meter / second)
      A1 = Quantity("A1")
      SI.set_quantity_dimension(A1, acceleration)
      SI.set_quantity_scale_factor(A1, 1 * meter / second**2)
      T1 = Quantity("T1")
      SI.set_quantity_dimension(T1, time)
      SI.set_quantity_scale_factor(T1, 1 * second)
  
      expr = A1 * T1 + V1
      # should not throw ValueError here
      SI._collect_factor_and_dimension(expr)
  
imports: import warnings
  from sympy.core.add import Add
  from sympy.core.function import Function, diff
  from sympy.core.numbers import Number, Rational
  from sympy.core.singleton import S
  from sympy.core.symbol import Symbol, symbols
  from sympy.functions.elementary.complexes import Abs
  from sympy.functions.elementary.exponential import exp, log
  from sympy.functions.elementary.miscellaneous import sqrt
  from sympy.functions.elementary.trigonometric import sin
  from sympy.integrals.integrals import integrate
  from sympy.physics.units import amount_of_substance, area, convert_to, find_unit, volume, kilometer, joule, molar_gas_constant, vacuum_permittivity, elementary_charge, volt, ohm
  from sympy.physics.units.definitions import amu, au, centimeter, coulomb, day, foot, grams, hour, inch, kg, km, m, meter, millimeter, minute, quart, s, second, speed_of_light, bit, byte, kibibyte, mebibyte, gibibyte, tebibyte, pebibyte, exbibyte, kilogram, gravitational_constant, electron_rest_mass
  from sympy.physics.units.definitions.dimension_definitions import Dimension, charge, length, time, temperature, pressure, energy, mass
  from sympy.physics.units.prefixes import PREFIXES, kilo
  from sympy.physics.units.quantities import PhysicalConstant, Quantity
  from sympy.physics.units.systems import SI
  from sympy.testing.pytest import raises
label_desc: Use image node_id 31 for calling a global function with example usage: test_issue_24211() without return types