input: from typing import List
  
  
  def find_max_paren_depth(paren_string: str) -> List[int]:
      """ This function takes a string containing several groups of nested parentheses separated by spaces.
      For each group, it outputs the maximum depth of nested parentheses.
      For example, (()()) has a maximum nesting depth of two, while ((())) has a depth of three.
  
      >>> find_max_paren_depth('(()()) ((())) () ((())()())')
      [2, 3, 1, 3]
      """
output:     
      depths = []
      for group in paren_string.split():
          current_depth = 0
          max_depth = 0
          for char in group:
              if char == '(':
                  current_depth += 1
                  max_depth = max(max_depth, current_depth)
              elif char == ')':
                  current_depth -= 1
          depths.append(max_depth)
      return depths
  