def _fix_defaults(output, defaults=None):
names = output.dtype.names<EOL>(data, mask, fill_value) = (output.data, output.mask, output.fill_value)<EOL>for (k, v) in (defaults or {}).items():<EOL><INDENT>if k in names:<EOL><INDENT>fill_value[k] = v<EOL>data[k][mask[k]] = v<EOL><DEDENT><DEDENT>return output<EOL>
Update the fill_value and masked data of `output`
from the default given in a dictionary defaults.