function validate( opts, options ) {
	if ( !isPlainObject( options ) ) {
		return new TypeError( format( 'invalid argument. Options argument must be an object. Value: `%s`.', options ) );
	}
	if ( hasOwnProp( options, 'output_dtype_policy' ) ) {
		opts.policy = options.output_dtype_policy;
		if ( !isPolicy( opts.policy ) ) {
			return new TypeError( format( 'invalid option. `%s` option must be a recognized/supported output array data type policy. Option: `%s`.', 'output_dtype_policy', opts.policy ) );
		}
	}
	return null;
}
Validates function options.

@private
@param {Object} opts - destination object
@param {Object} options - options
@param {string} [options.output_dtype_policy] - policy for determining the output array data type
@returns {(Error|null)} null or an error object

@example
var opts = {};
var options = {
    'output_dtype_policy': 'float'
};
var err = validate( opts, options );
if ( err ) {
    throw err;
}