input: Write a function to generate a pattern of asterisks resembling a pyramid, followed by an inverted pyramid, with a given number of rows. The function should take an integer as input and print the pattern. If no input is provided, the function should default to 5 rows.
  assert generate_pyramid_pattern(5) == None
  assert generate_pyramid_pattern() == None
  assert generate_pyramid_pattern(3) == None
output: def generate_pyramid_pattern(rows=5):
      for i in range(1, rows + 1):
          print(' ' * (rows - i) + '*' * (2 * i - 1))
      for i in range(rows - 1, 0, -1):
          print(' ' * (rows - i) + '*' * (2 * i - 1))