code: def test_ManagedProperties():
      # ManagedProperties is now deprecated. Here we do our best to check that if
      # someone is using it then it does work in the way that it previously did
      # but gives a deprecation warning.
      from sympy.core.assumptions import ManagedProperties
  
      myclasses = []
  
      class MyMeta(ManagedProperties):
          def __init__(cls, *args, **kwargs):
              myclasses.append("executed")
              super().__init__(*args, **kwargs)
  
      code = """
  class MySubclass(Basic, metaclass=MyMeta):
      pass
  """
      with warns_deprecated_sympy():
          exec(code)
  
      assert myclasses == ["executed"]
  
imports: import collections
  from typing import TypeVar, Generic
  from sympy.assumptions.ask import Q
  from sympy.core.basic import Basic, Atom, as_Basic, _atomic, _aresame
  from sympy.core.containers import Tuple
  from sympy.core.function import Function, Lambda
  from sympy.core.numbers import I, pi, Float
  from sympy.core.singleton import S
  from sympy.core.symbol import symbols, Symbol, Dummy
  from sympy.concrete.summations import Sum
  from sympy.functions.elementary.trigonometric import cos, sin
  from sympy.functions.special.gamma_functions import gamma
  from sympy.integrals.integrals import Integral
  from sympy.functions.elementary.exponential import exp
  from sympy.testing.pytest import raises, warns_deprecated_sympy
label_desc: Use image node_id 23 for calling a global function with example usage: test_ManagedProperties() without return types