



'''simple docstring'''




from ..utils import DummyObject, requires_backends







class       _lowerCAmelCase				(     metaclass=_a					):
	__SCREAMING_SNAKE_CASE  :						Any						     =   ["torch", "scipy"]


	def __init__(self			, *lowercase			, **lowercase				):
				requires_backends(self			, ["""torch""", """scipy"""]				)


	@classmethod
	def        _a      (cls			, *lowercase			, **lowercase				):
				requires_backends(cls			, ["""torch""", """scipy"""]				)


	@classmethod
	def        _a      (cls			, *lowercase			, **lowercase				):
				requires_backends(cls			, ["""torch""", """scipy"""]				)





from __future__ import annotations
def 		a_							( __lowerCAmelCase				):
  if not nums:
    return 0
  lowerCAmelCase__										=      nums[0]
  lowerCAmelCase__										=      0
  for num in nums[1:]:
    lowerCAmelCase__				,      lowerCAmelCase__										=      (
        max_excluding + num,
        max(__lowerCAmelCase   , __lowerCAmelCase				),
    )
  return max(__lowerCAmelCase   , __lowerCAmelCase				)


if __name__ == "__main__":
      import doctest

      doctest.testmod()

