code: def get_default_value(downloads):
      """Find the default value (one day's worth of downloads) for a given input
  
      Parameters
      ----------
      downloads : dict
          A dict of dates and downloads on that day
  
      Returns
      -------
      default_value : int
          The default value, which is the average of the last 7 days of downloads
          that are contained in the input dictionary.
      """
      last_7_keys = sorted(downloads.keys())[-7:]
      default_value = int(mean([downloads[key] for key in last_7_keys]))
      return default_value
  
imports: from datetime import date, timedelta
  import json
  import math
  import os
  import requests
  from statistics import mean
label_desc: Use image node_id 2 for calling a global function with example usage: get_default_value(downloads) and returns: default_value