input: from typing import List
  
  
  def find_max_element(arr: List[int]) -> int:
      """Find the maximum element in the given list of integers.
      >>> find_max_element([1, 10, 50, 3, 8])
      50
      >>> find_max_element([-5, -2, -7, -4, -3])
      -2
      """
      
      return max(arr)
output:     if not arr:
          raise ValueError("The input list is empty")