#NEWLINE# def mask_secret_parameters( parameters , secret_parameters ) : #NEWLINE# #INDENT# '\n    Introspect the parameters dict and return a new dict with masked secret\n    parameters.\n\n    :param parameters: Parameters to process.\n    :type parameters: ``dict``\n\n    :param secret_parameters: List of parameter names which are secret.\n    :type secret_parameters: ``list``\n    ' #NEWLINE# result = copy . deepcopy ( parameters ) #NEWLINE# for parameter in secret_parameters : #NEWLINE# #INDENT# if ( parameter in result ) : #NEWLINE# #INDENT# result [ parameter ] = MASKED_ATTRIBUTE_VALUE #NEWLINE# #UNINDENT# #UNINDENT# return parameters