parameters: (handle, shape, value, name=None)
return_statement: return gen_resource_variable_ops.assign_variable_op(
        handle, value_tensor, name=name)
docstring: Helper that checks shape compatibility and assigns variable.
docstring_summary: Helper that checks shape compatibility and assigns variable.
docstring_tokens: Helper that checks shape compatibility and assigns variable .
function: def shape_safe_assign_variable_handle(handle, shape, value, name=None):
    """Helper that checks shape compatibility and assigns variable."""
    with _handle_graph(handle):
      value_tensor = ops.convert_to_tensor(value)
    shape.assert_is_compatible_with(value_tensor.shape)
    return gen_resource_variable_ops.assign_variable_op(
        handle, value_tensor, name=name)
function_tokens: def shape_safe_assign_variable_handle ( handle , shape , value , name = None ) : with _handle_graph ( handle ) : value_tensor = ops . convert_to_tensor ( value ) shape . assert_is_compatible_with ( value_tensor . shape ) return gen_resource_variable_ops . assign_variable_op ( handle , value_tensor , name = name )