original_docstring: 
      Gets a list of all the outputs, and sanitizes outputs.
      - Removes empty elements.
      - adds ISO entries to the outputs.
      - Outputs only keys found in 'key_replace_dict', saving their names by 'key_replace_dict values,
        if 'key_replace_dict' is not None.
      Args:
          outputs (List[Dict]): List of the outputs to be sanitized.
          key_replace_dict (Dict): Dict of the keys to transform their names.
  
      Returns:
          (List[Dict]): Sanitized outputs.
      
docstring: Gets a list of all the outputs, and sanitizes outputs.
  Removes empty elements.
  adds ISO entries to the outputs.
docstring_tokens: Gets a list of all the outputs and sanitizes outputs . Removes empty elements . adds ISO entries to the outputs .
code: def sanitize_outputs(outputs: Any, key_replace_dict: Optional[Dict] = None) -> List[Dict]:
      """
      Gets a list of all the outputs, and sanitizes outputs.
      - Removes empty elements.
      - adds ISO entries to the outputs.
      - Outputs only keys found in 'key_replace_dict', saving their names by 'key_replace_dict values,
        if 'key_replace_dict' is not None.
      Args:
          outputs (List[Dict]): List of the outputs to be sanitized.
          key_replace_dict (Dict): Dict of the keys to transform their names.
  
      Returns:
          (List[Dict]): Sanitized outputs.
      """
      if not isinstance(outputs, list):
          outputs = [outputs]
      outputs = [remove_empty_elements(output) for output in outputs]
      outputs = add_iso_entries_to_dict(outputs)
      return build_final_outputs(outputs, key_replace_dict) if key_replace_dict else outputs
code_tokens: def sanitize_outputs ( outputs : Any , key_replace_dict : Optional [ Dict ] = None ) -> List [ Dict ] : if not isinstance ( outputs , list ) : outputs = [ outputs ] outputs = [ remove_empty_elements ( output ) for output in outputs ] outputs = add_iso_entries_to_dict ( outputs ) return build_final_outputs ( outputs , key_replace_dict ) if key_replace_dict else outputs
short_docstring: Gets a list of all the outputs, and sanitizes outputs.
short_docstring_tokens: Gets a list of all the outputs and sanitizes outputs .
comment: """
      Gets a list of all the outputs, and sanitizes outputs.
      - Removes empty elements.
      - adds ISO entries to the outputs.
      - Outputs only keys found in 'key_replace_dict', saving their names by 'key_replace_dict values,
        if 'key_replace_dict' is not None.
      Args:
          outputs (List[Dict]): List of the outputs to be sanitized.
          key_replace_dict (Dict): Dict of the keys to transform their names.
  
      Returns:
          (List[Dict]): Sanitized outputs.
      """