input: from typing import List, Tuple
  
  
  def generate_pattern(size: int) -> List[Tuple[int, int]]:
      """
      Generates a list of tuples representing coordinates for a checkerboard pattern of given size.
      The tuples contain (i, j) coordinates where i + j is even.
  
      >>> generate_pattern(2)
      [(0, 0), (0, 2), (1, 1), (2, 0), (2, 2)]
  
      >>> generate_pattern(3)
      [(0, 0), (0, 2), (0, 4), (1, 1), (1, 3), (2, 0), (2, 2), (2, 4), (3, 1), (3, 3), (4, 0), (4, 2), (4, 4)]
      """
      
      pattern = []
      for i in range(size * 2 + 1):
          for j in range(size * 2 + 1):
              if (i + j) % 2 == 0:
                  pattern.append((i, j))
      return pattern
output:     pattern = []
      for i in range(size * 2 + 1):
          for j in range(size * 2 + 1):
              if (i + j) % 2 == 0:
                  pattern.append((i, j))
      return pattern