input: Write a function to print the given pattern of asterisks described in the instruction. The pattern should consist of a pyramid of asterisks increasing in size up to 5 rows and then decreasing back down to 1 row. Complete the code in Python to achieve the desired pattern.
  assert print_pattern() == None
  assert print_pattern() == None
  assert print_pattern() == None
  assert print_pattern() == None
  assert print_pattern() == None
output: def print_pattern():
      for i in range(1, 6):
          print('*' * i)
      for i in range(4, 0, -1):
          print('*' * i)