input: Write a python function to generate a report of the 10 most popular URLs from a given URL.
  assert generate_report("http://example.com/api/data")=="MONTHLY REPORT\nhttp://example1.com: 50 views\nhttp://example2.com: 40 views\n"
  assert generate_report("http://example.com/api/data2")=="MONTHLY REPORT\nhttp://example3.com: 70 views\nhttp://example4.com: 60 views\n"
output: def generate_report(url):
      import requests
      from collections import Counter
      
      response = requests.get(url)
      data = response.json()
      
      # Assuming data is a list of URLs
      url_counts = Counter(data)
      
      # Get the 10 most common URLs
      most_common_urls = url_counts.most_common(10)
      
      # Generate report
      report = "MONTHLY REPORT\n"
      for url, count in most_common_urls:
          report += f"{url}: {count} views\n"
      
      return report