parameters: (dict_, keys_to_remove)
docstring: Remove keys we don't want to display to the user.
  
      Can also be used to remove keys from user input that we want to manage
      ourselves. In the latter case, be sure the query is using $set and not
      completely replacing the document, otherwise keys added elsewhere might
      be lost.
  
      :param dict_: The dictionary to iterate over.
      :type dict_: dict
      :param keys_to_remove: The list of keys we want to remove.
      :type keys_to_remove: list
docstring_summary: Remove keys we don't want to display to the user.
docstring_tokens: Remove keys we don t want to display to the user .
function: def clean_dict(dict_, keys_to_remove):
      """
      Remove keys we don't want to display to the user.
  
      Can also be used to remove keys from user input that we want to manage
      ourselves. In the latter case, be sure the query is using $set and not
      completely replacing the document, otherwise keys added elsewhere might
      be lost.
  
      :param dict_: The dictionary to iterate over.
      :type dict_: dict
      :param keys_to_remove: The list of keys we want to remove.
      :type keys_to_remove: list
      """
  
      for key in keys_to_remove:
          if key in dict_:
              del dict_[key]
function_tokens: def clean_dict ( dict_ , keys_to_remove ) : for key in keys_to_remove : if key in dict_ : del dict_ [ key ]