code: def deprecated_name(name):
      
      def decorator(func):
          """Decorator function."""
          def func_wrapper(self):
              """Wrapper for original function."""
              if hasattr(self, name):
                  # Return the old property
                  return getattr(self, name)
              else:
                  return func(self)
          return func_wrapper
      return decorator
docs: Allow old method names for backwards compatability.