input: Write a function to construct nested loops in Python that print out the elements of the given arrays in a new line. If the input arrays are empty, print "No elements to print".
  
  def print_nested_elements(arrays):
      if not arrays:
          print("No elements to print")
          return
      for x in arrays[0]:
          for y in arrays[1]:
              for z in arrays[2]:
                  print(x, y, z)
  
  assert print_nested_elements([[1, 2, 3], [4, 5, 6], [7, 8, 9]])==None
  assert print_nested_elements([])==None
output: def print_nested_elements(arrays):
      if not arrays:
          print("No elements to print")
          return
      for x in arrays[0]:
          for y in arrays[1]:
              for z in arrays[2]:
                  print(x, y, z)