parameters: (expected_tensor, tensor)
docstring: Assert tensors are the same shape, from the same graph.
  
    Args:
      expected_tensor: Tensor with expected shape.
      tensor: Tensor of actual values.
    Returns:
      Tuple of (actual_tensor, label_tensor), possibly with assert ops added.
docstring_summary: Assert tensors are the same shape, from the same graph.
docstring_tokens: Assert tensors are the same shape from the same graph .
function: def with_same_shape(expected_tensor, tensor):
    """Assert tensors are the same shape, from the same graph.
  
    Args:
      expected_tensor: Tensor with expected shape.
      tensor: Tensor of actual values.
    Returns:
      Tuple of (actual_tensor, label_tensor), possibly with assert ops added.
    """
    with ops.op_scope([expected_tensor, tensor], '%s/' % tensor.op.name):
      tensor_shape = expected_tensor.get_shape()
      expected_shape = (
          tensor_shape.as_list() if tensor_shape.is_fully_defined()
          else array_ops.shape(expected_tensor, name='expected_shape'))
      return with_shape(expected_shape, tensor)
function_tokens: def with_same_shape ( expected_tensor , tensor ) : with ops . op_scope ( [ expected_tensor , tensor ] , '%s/' % tensor . op . name ) : tensor_shape = expected_tensor . get_shape ( ) expected_shape = ( tensor_shape . as_list ( ) if tensor_shape . is_fully_defined ( ) else array_ops . shape ( expected_tensor , name = 'expected_shape' ) ) return with_shape ( expected_shape , tensor )