input: Write a function to create a bar chart visualization in Python using Matplotlib that displays the top 5 most popular programming languages based on provided data. The function should take two lists as input: one for the x-axis labels and one for the y-axis values, and it should display a bar chart with appropriate titles and labels. If either list is empty, the function should print an error message and return without displaying the chart.
  assert top_languages_chart(["Python", "Java", "C++", "Javascript", "C#"], [45, 25, 15, 10, 5])==None
  assert top_languages_chart(x_values=[], y_values=[45, 25, 15, 10, 5])==None
  assert top_languages_chart(["Python", "Java", "C++", "Javascript", "C#"], [])==None
  assert top_languages_chart([], [])==None
  assert top_languages_chart(["Python", "Java", "C++", "Javascript", "C#"], [45, 25, 15, 10, 5])==None
output: def top_languages_chart(x_values, y_values):
      if not x_values or not y_values:
          print("Error: One or both lists are empty.")
          return
      plt.bar(x_values, y_values)
      plt.xlabel('Programming Languages')
      plt.ylabel('Popularity')
      plt.title('Top 5 Most Popular Programming Languages')
      plt.show()