input: Write a function to print a pyramidal pattern of asterisks as specified in the given instruction. The pattern should first increase in asterisks per line up to 5 lines, and then decrease back down to 1 asterisk per line.
  
  def print_pattern():
      for i in range(5):
          for j in range(i+1):
              print("*", end="")
          print("")
  
      for i in range(5, 0, -1):
          for j in range(i):
              print("*", end="")
          print("")
  
  assert print_pattern.__code__.co_code != b''
  assert "*" in print_pattern.__code__.co_consts
  assert 5 in print_pattern.__code__.co_consts
  assert 0 in print_pattern.__code__.co_consts
  assert -1 in print_pattern.__code__.co_consts
output: def print_pattern():
      for i in range(5):
          for j in range(i+1):
              print("*", end="")
          print("")
  
      for i in range(5, 0, -1):
          for j in range(i):
              print("*", end="")
          print("")