code: def filter_dict(unfiltered, filter_keys):
      
      filtered = DotDict()
      for k in filter_keys:
          filtered[k] = unfiltered[k]
      return filtered
docs: Return a subset of a dictionary using the specified keys.