input: Write a function to generate a pattern where '#' and spaces are printed in a 7x7 grid such that '#' appears in positions where the sum of the row and column indices is even, and spaces appear in positions where the sum is odd. If the function is called with any input, it should produce the same pattern as the given output.
  assert generate_pattern("any_input")==None
  assert generate_pattern(1)==None
  assert generate_pattern("test")==None
  assert generate_pattern([])==None
  assert generate_pattern({})==None
output: def generate_pattern(input):
      for i in range(7):
          for j in range(7):
              if (i + j) % 2 == 0:
                  print('#', end='')
              else:
                  print(' ', end='')
          print()