code: def test_reduce_pageview():
      filename = "wiki_page_views.csv"
      df = pd.read_csv(filename)
      df = df[df["views"] < 1e7]
      #
      plt.hist(df["views"], bins=100, log=True)
      views_avg = np.mean(df["views"])
      views_median = np.median(df["views"])
      plt.title("Views avg: %s median: %s" % (views_avg, views_median))
      plt.savefig(filename.replace(".csv", ".png"))
      plt.close()
      #
      views_limit = 5000
      df = df[df["views"] > views_limit]
      filename = "wiki_page_views_more_5000month.csv"
      df.to_csv(filename, index=True)
      #
      plt.hist(df["views"], bins=100, log=True)
      views_avg = np.mean(df["views"])
      views_median = np.median(df["views"])
      plt.title("Views avg: %s median: %s" % (views_avg, views_median))
      plt.savefig(filename.replace(".csv", ".png"))
      plt.close()
  
imports: import ast
  import glob
  import pickle
  import uuid
  from typing import List, Optional
  import os
  import bz2
  import csv
  import numpy
  import pandas
  import pytest
  from matplotlib import pyplot
  from langchain.docstore.document import Document
  from langchain.document_loaders import MWDumpLoader
  from joblib import Parallel, delayed
label_desc: Use image node_id 14 for calling a global function with example usage: test_reduce_pageview() without return types