code: def is_sub_dict(sub_dict, dictionary):
      
      for key in sub_dict.keys():
          if key not in dictionary:
              return False
          if (type(sub_dict[key]) is not dict) and (sub_dict[key] != dictionary[key]):
              return False
          if (type(sub_dict[key]) is dict) and (not is_sub_dict(sub_dict[key], dictionary[key])):
              return False
      return True
docs: Legacy filter for determining if a given dict is present.