code: def remove_missing_keys(src_dict, target_dict):
      
      for key in list(target_dict.keys()):
          if key not in src_dict:
              target_dict.pop(key)
docs: Remove keys from target_dict that are not available in src_dict
  
      :param src_dict: source dictionary to search for
      :param target_dict: target dictionary where keys should be removed