code: def dict_head(d, N=5):
      
      return {k: d[k] for k in list(d.keys())[:N]}
docs: Return the head of a dictionary. It will be random!
  
      Default is to return the first 5 key/value pairs in a dictionary.
  
      Args:
          d: Dictionary to get head.
          N: Number of elements to display.
  
      Returns:
          dict: the first N items of the dictionary.